quarta-feira, 25 de outubro de 2017

Protocolo HTTP - Response Status Code


Códigos de Status de Resposta do protocolo HTTP

1xx (Informational): A requisição foi recebida, continuando o processo
  • 100: Continue
  • 101: Switching Protocols


2xx (Successful): A requisição foi recebida, compreendida e aceita com sucesso
  • 200: OK
  • 201: Created
  • 202: Accepted
  • 203: Non-Authoritative Information
  • 204: No Content
  • 205: Reset Content
  • 206: Partial Content


3xx (Redirection): Indica que outras ações precisam ser tomadas para atender a requisição
  • 300: Multiple Choices
  • 301: Moved Permanently
  • 302: Found
  • 303: See Other
  • 304: Not Modified 
  • 305: Use Proxy
  • 307: Temporary Redirect


4xx (Client Error): A requisição contém uma sintaxe incorreta ou não pode ser atendida
  • 400: Bad Request
  • 401: Unauthorized   
  • 402: Payment Required
  • 403: Forbidden
  • 404: Not Found
  • 405: Method Not Allowed
  • 406: Not Acceptable
  • 407: Proxy Authentication Required 
  • 408: Request Timeout
  • 409: Conflict
  • 410: Gone
  • 411: Length Required
  • 412: Precondition Failed  
  • 413: Payload Too Large
  • 414: URI Too Long
  • 415: Unsupported Media Type
  • 416: Range Not Satisfiable
  • 417: Expectation Failed
  • 426: Upgrade Required


5xx (Server Error): O servidor não atendeu a uma requisição aparentemente válida
  • 500: Internal Server Error
  • 501: Not Implemented
  • 502: Bad Gateway
  • 503: Service Unavailable
  • 504: Gateway Timeout
  • 505: HTTP Version Not Supported

 _________________________________________
As informações contidas acima tem como referência as RFCs 7231, 7232, 7233 e 7235 publicadas pelo IETF (Internet Engineering Taskforce).

Nenhum comentário:

Postar um comentário