Documentos de Académico
Documentos de Profesional
Documentos de Cultura
HTTPResponse Codes indicate whether a specic HTTP requests has been successfully completed. Responses
are grouped in ve classes: informational responses, successful responses, redirections, client errors, and servers
errors.
The following table lists them all, with their respective meanings:
Status
code
Status text
Description
HTTP
version
Informational responses
This interim response indicates that everything so far is OK and that
100
Continue
HTTP/1.1
only
Switching
Protocol
client, and indicates that the protocol the server is switching too. It
was introduced to allow migration to an incompatible protocol
version, and is not in common use.
HTTP/1.1
only
Successful responses
The request has succeeded. The meaning of a success varies
depending on the HTTP method:
GET: The resource has been fetched and is transmitted in the
message body.
200
OK
HTTP/0.9
and later
201
202
Created
Accepted
The request has succeeded and a new resource has been created as
a result of it. This is typically the response sent after a PUTrequest.
The request has been received but not yet acted upon. It is noncommittal, meaning that there is no way in HTTP to later send an
asynchronous response indicating the outcome of processing the
request. It is intended for cases where another process or server
HTTP/0.9
and later
HTTP/0.9
and later
203
NonAuthoritative
Information
204
No Content
205
206
HTTP/0.9
and 1.1
HTTP/0.9
and later
HTTP/1.1
only
Partial
HTTP/1.1
Content
only
Reset Content
Redirection messages
300
301
302
Multiple
Choice
HTTP/1.0
and later
Moved
This response code means that URI of requested resource has been
HTTP/0.9
Permanently
and later
This response code means that URI of requested resource has been
changed temporarily. New changes in the URI might be made in the
HTTP/0.9
and later
Found
future requests.
See Other
HTTP/0.9
and 1.1
304
Not Modied
HTTP/0.9
and later
305
Use Proxy
HTTP/1.1
only
306
unused
HTTP/1.1
only
303
307
Temporary
Redirect
HTTP/1.1
only
Permanent
Redirect
HTTP method used: if a POST was used in the rst request, a POST
must be used in the second request.
draft-
reschkehttp-status308
Bad Request
401
Unauthorized
402
Payment
Required
403
Forbidden
404
Not Found
405
Method Not
Allowed
406
Not
Acceptable
407
Proxy
Authentication
Required
This response means that server could not understand the request
due to invalid syntax.
HTTP/0.9
and later
HTTP/0.9
and later
This response code is reserved for future use. Initial aim for creating
this code was using it for digital payment systems however this is not
HTTP/0.9
used currently.
and 1.1
HTTP/0.9
and later
HTTP/0.9
and later
The request method is known by the server but has been disabled
and cannot be used. The two mandatory methods,GET and HEAD,
must never be disabled and should not return this error code.
HTTP/1.1
only
This response is sent when the web server, after performing serverdriven content negotiation, doesn't nd any content following the
criteria given by the user agent.
HTTP/1.1
only
HTTP/1.1
proxy.
only
Request
Timeout
used much more since some browsers, like Chrome or IE9, use
HTTP preconnection mechanisms to speed up surng (see
bug881804, which tracks the future implementation of such a
mechanism in Firefox). Also note that some servers merely shut
HTTP/1.1
only
state of server.
HTTP/1.1
only
HTTP/1.1
only
Length
Required
HTTP/1.1
only
412
Precondition
Failed
The client has indicated preconditions in its headers which the server
does not meet.
HTTP/1.1
only
413
Payload Too
Large
HTTP/1.1
only
414
The URI requested by the client is longer than the server is willing to
HTTP/1.1
interpret.
only
415
Unsupported
Media Type
HTTP/1.1
only
The range specied by the Range header eld in the request can't be
416
Requested
Range Not
Satisable
417
Expectation
Failed
409
Conict
410
Gone
411
418
I'm a teapot
fullled; it's possible that the range is outside the size of the target
URI's data.
HTTP/1.1
only
HTTP/1.1
only
Any attempt to brew coee with a teapot should result in the error
code "418 I'm a teapot". The resulting entity body MAY be short and
HTCPCP/1.0
stout.
The request was directed at a server that is not able to produce a
421
426
Misdirected
Request
Upgrade
Required
HTTP/2.0
HTTP/1.1
and later
Precondition
Required
HTTP/1.1
and later
conict."
429
431
Too Many
The user has sent too many requests in a given amount of time
HTTP/1.1
Requests
("rate limiting").
and later
Request
Header Fields
Too Large
HTTP/1.1
and later
Internal
Server Error
501
Not
Implemented
502
Bad Gateway
HTTP/0.9
and later
HTTP/0.9
and later
HTTP/0.9
and later
The server is not ready to handle the request. Common causes are a
server that is down for maintenance or that is overloaded. Note that
together with this response, a user-friendly page explaining the
503
Service
Unavailable
HTTP/0.9
and later
service. The webmaster must also take care about the cachingrelated headers that are sent along with this response, as these
temporary condition responses should usually not be cached.
504
Gateway
Timeout
HTTP Version
505
506
Not
Supported
The HTTP version used in the request is not supported by the server.
Variant Also
Negotiates
HTTP/1.1
only
HTTP/1.1
only
HTTP/1.1
Variant Also
Negotiates
Network
511
Authentication
Required
The 511 status code indicates that the client needs to authenticate to
gain network access.
HTTP/1.1
HTTP/1.1