Une entête Http est composée de : - Une première ligne qui contient la version du protocole http utilisée par le serveur, le code de réponse, et une courte description du code de la réponse. Exemple : HTTP/1.1 200 OK . - Les lignes suivantes, appelés "attributs". Voici la liste des attributs standards. | |
Informational, request received, continuing process | |
CONTINUE | 100 |
SWITCHING PROTOCOLS | 101 |
Success, the action was successfully received, understood, and accepted | |
OK | 200 |
CREATED | 201 |
ACCEPTED | 202 |
NON AUTHORITATIVE INFORMATION | 203 |
NO CONTENT | 204 |
RESET CONTENT | 205 |
PARTIAL CONTENT | 206 |
Redirection, further action must be taken in order to complete the request | |
MULTIPLE CHOICES | 300 |
MOVED PERMANENTLY | 301 |
FOUND | 302 |
SEE_OTHER | 303 |
NOT MODIFIED | 304 |
USE PROXY | 305 |
TEMPORARY REDIRECT | 307 |
Client Error, the request contains bad syntax or cannot be fulfilled | |
BAD REQUEST | 400 |
UNAUTHORIZED | 401 |
PAYMENT REQUIRED | 402 |
FORBIDDEN | 403 |
NOT FOUND | 404 |
METHOD NOT ALLOWED | 405 |
NOT ACCEPTABLE | 406 |
PROXY AUTHENTICATION REQUIRED | 407 |
REQUEST TIMEOUT | 408 |
CONFLICT | 409 |
GONE | 410 |
LENGTH REQUIRED | 411 |
PRECONDITION FAILED | 412 |
REQUEST ENTITY TOO LARGE | 413 |
REQUEST URI TOO LARGE | 414 |
UNSUPPORTED MEDIA TYPE | 415 |
REQUEST RANGE NOT SATISFIABLE | 416 |
EXPECTATION FAILED | 417 |
Server Error, the server failed to fulfill an apparently valid request | |
INTERNAL SERVER ERROR | 500 |
NOT IMPLEMENTED | 501 |
BAD GATEWAY | 502 |
SERVICE UNAVAILABLE | 503 |
GATEWAY TIMEOUT | 504 |
HTTP VERSION NOT SUPPORTED | 505 |