Download - HTTP Status Codes Cheat Sheet: An Exhaustive List

Transcript
Page 1: HTTP Status Codes Cheat Sheet: An Exhaustive List

AN EXHAUSTIVE LIST OF

HTTPBROUGHT TO YOU BY:

Page 2: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES

CONTINUE

SWITCHING PROTOCOLS

PROCESSING

The server has received the request headers, andthe client should proceed to send the request body.

To have a server check if the request could be accepted based on the request's headers alone, a client must send Expect: 100-continue as a header in its initial request and check if a 100 Continue status code is received in response before continuing.

The requester has asked the server to switch protocolsand the server is acknowledging that it will do so.

As a WebDav request may contain many sub-requestsinvolving file operations, this request could take some time.

This code indicates that the server has received and is processing, but a response is not yet available.

CODE MEANING

1xx Informational

101

100

102

Page 3: HTTP Status Codes Cheat Sheet: An Exhaustive List

Standard response for successful HTTP requests.

The actual response will depend on the request method.A GET request will have response that contains an entity corresponding to the requested resource. A POST request will contain an entity describing the result of the action.

The request has been fulfilled and resulted in a newresource being created.

The request has been accepted for processing, but theprocessing has not been completed. The request might or might not eventually be acted upon, as it might bedisallowed when processing actually takes place.

STATUS CODES CODE MEANING

2xx Success

OK

CREATED

ACCEPTED

201

200

202

Page 4: HTTP Status Codes Cheat Sheet: An Exhaustive List

The server successfully processed the request, but isreturning information that may be from another source.

The server successfully processed the request, but is notreturning any content. (Usually response to delete request.)

The server successfully processed the request, but is notreturning any content. This response requires that therequester reset the document view.

The server is delivering only part of the resource due to a range header sent by the client. The range headeris used by tools like “wget” to enable resuming of interrupted downloads, or split a download into multiplesimultaneous streams.

NON-AUTHORITATIVE INFORMATION

203

NO CONTENT204

RESET CONTENT205

PARTIAL CONTENT206

STATUS CODES CODE MEANING

2xx Success

Page 5: HTTP Status Codes Cheat Sheet: An Exhaustive List

The message body that follows is an XML message and can contain a number of separate response codes,depending on how many sub-requests were made.

The members of a DAV binding have already beenenumerated in a previous reply to this request, and arenot being included again.

The server has fulfilled a GET request for the resource,and the response is a representation of the result ofone or more instance-manipulations applied to the current instance.

MULTIPLE STATUS207

ALREADY REPORTED208

IM USED 226

STATUS CODES CODE MEANING

2xx Success

Page 6: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

3xx Redirection

Indicates multiple options for the resource that the client may follow. For instance, it could be used topresent different format options for video, list fileswith different extensions, or word sense disambiguation.

This and all future requests should be directed to thegiven URI.

MULTIPLE CHOICES300

MOVED PERMANENTLY301

An industry practice contradicting the standard; TheHTTP/1.0 specification required the client to performa temporary redirect, but popular browsers implemented302 with the functionality of a 303.

Status codes 303 and 307 distinguish between the twobehaviors; however, some frameworks use 302 (as if the code were a 303).

FOUND302

Page 7: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

3xx Redirection

The response to the request can be found under another URI using a GET method. When received inresponse to a POST, it should be assumed that theserver has received the data and the redirect shouldbe issued with a separate GET message.

SEE OTHER303

Indicates that the resource has not been modified since the version specified by the request headers.

There is no need to retransmit the resource, since theclient still has a previously-downloaded copy.

NOT MODIFIED304

The requested source is only available through a proxy,whose address is provided in the response. Many HTTPclients do not correctly handle responses with this status code, primarily for security reasons.

USE PROXY305

Page 8: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

3xx Redirection

No longer used. Originally meant “subsequent requests should be the specified proxy.”

SWITCH PROXY306

The request should be repeated with another URI;however, future requests should still use the originalURI. This method is not allowed to be changed whenreissuing the original request.

For instance, a POST request should be repeated usinganother POST request.

TEMPORARY REDIRECT307

The request, and all future requests should be repeatedusing another URI. 307 and 308 parallel the behaviors of302 and 301, but do not allow the HTTP method to change.

PERMANENT REDIRECT308

Page 9: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

4xx Client Error

The request cannot be fulfilled due to bad syntax.BAD REQUEST400

Similar to 403 Forbidden, but used specifically for whenauthentication is required and has not failed or has notyet been provided.

The response must include a WWW-Authenticate headerfield containing a challenge applicable to the requested resource.

UNAUTHORIZED401

Reserved for future use. The original intention was thatthis code might be used as part of some form of digitalcash or micropayment scheme, but that has not happened,and this code is not usually used.

PAYMENT REQUIRED402

Page 10: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

4xx Client Error

The request was a valid request, but the server is refusing to respond to it. Unlike a 401 Unauthorized response, authenticating will make no difference.

FORBIDDEN403

The requested source could not be found but may beavailable again in the future. Subsequent requests bythe client are permissible.

NOT FOUND404

A request was made of a resource using a requestmethod not supposed by that resource.

For example, using GET on a form which requiresdata to be presented via POST, or using PUT on a read-only resource.

METHOD NOT ALLOWED405

The requested resource is only capable of generatingcontent not acceptable according to the Accept headerssent in the request.

NOT ACCEPTABLE406

Page 11: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

4xx Client Error

The client must first authenticate itself with the proxy.PROXY AUTHENTICATIONREQUIRED

407

The server timed out waiting for the request. The clientdid not make a request within the time that the serverwas prepared to wait. At a later time, the request maybe repeated without modifications.

REQUEST TIMEOUT408

Indicates that the request could not be processed because of conflict in the request.

CONFLICT409

Indicates that the resource requested is no longeravailable and will not be available again.

This should be used when a resource has beenintentionally removed. Upon receiving this code, theclient should not request the resource again.

GONE410

Page 12: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

4xx Client Error

The request did not specify the length of its content,which is required by the requested resource.

LENGTH REQUIRED411

The server does not meet one of the preconditions that the requester put on the request.

PRECONDITION FAILED412

The request is larger than the server is willing or able to process.

REQUEST ENTITYTOO LARGE

413

The URI provided was too long for the server to process. Often the result of too much data beingencoded as a query-string of a GET request.

REQUEST-URI TOO LONG414

The request entity has a media type which the serveror resource does not support. For example, the client uploads an image as image/svg+xml, but theserver requires that images use a different format.

UNSUPPORTED MEDIA TYPE

415

Page 13: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

4xx Client Error

The client has asked for a portion of the file, but the server cannot supply that portion.

For example, if the client asked for a part of the file that lies beyond the end of the file.

REQUESTED RANGENOT SATISFIABLE

416

The server cannot meet the requirements of the Expect request-header field.

EXPECTATION FAILED417

This code was defined in 1998 as one of the traditional IETF April Fools’ jokes, and is not expectedto be implemented by actual HTTP servers.

I’M A TEAPOT418

Not a part of the HTTP standard, this code denotesthat previously valid authentication has expired. It isused as an alternative to 401 Unauthorized in order to differentiate from otherwise authenticated clientsbeing denied access to specific server resources.

AUTHENTICATIONTIMEOUT

419

Page 14: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

4xx Client Error

Not part of the HTTP standard, but defined by Springin the HttpStatus class to be used when a method failed. This status code is deprecated by Spring.

METHOD FAILURE420

Not part of the HTTP standard, but returned by version 1 of the Twitter Search and Trends API whenthe client is being rate limited. Other services may wish to implement the 429 Too Many Requests code.

ENHANCE YOUR CALM421

The request was well-formed but was unable to befollowed due to semantic errors.

UNPROCESSABLE ENTITY422

The resource that is being accessed is locked.LOCKED423

The request failed due to failure of a previous request.FAILED DEPENDENCY424

The client should switch to a different protocol such as TLS/1.0.

UPGRADE REQUIRED426

Page 15: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

4xx Client Error

The origin server requires the request to beconditional. Intended to prevent the lost update problem; “where a client GETs a resource’s state,modifies it, and PUTs it back to the server, while athird party has modified the state on their server, leading to a conflict.”

PRECONDITION REQUIRED

428

The user has sent too many requests in a given amountof time. Intended for use with rate limiting schemes.

TOO MANY REQUESTS429

The server is unwilling to process the request becauseeither an individual header field, or all the header fields collectively, are too large.

REQUEST HEADERFIELDS TOO LARGE

431

A Microsoft extension. Indicates that your sessionhas expired.

LOGIN TIMEOUT440

Used in Nginx logs to indicate that the server hasreturned no information to the client and closed theconnection (useful as a deterrent for malware).

NO RESPONSE444

Page 16: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

4xx Client Error

A Microsoft extension. The request should be retiredafter performing the appropriate action.

Often search-engines or custom applications will ignore required parameters.

RETRY WITH449

A Microsoft extension. This error is given whenWindows Parental Controls are turned on and areblocking access to the given webpage.

BLOCKED BY WINDOWSPARENTAL CONTROLS

450

Intended to be used when resource access is deniedfor legal reasons, e.g. censorship or government-mandated blocked access.

UNAVAILABLE FORLEGAL REASONS

451

Page 17: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

4xx Client Error

Used in Exchange ActiveSync if there either is a moreefficient server to use or the server cannot access the users’ mailbox.

The client is supposed to re-run the HTTP Autodiscovery protocol to find a better suited server.

REDIRECT (MICROSOFT)451

Nginx internal code similar to 431 but it wasintroduced earlier in version 0.9.4.

REQUEST HEADERTOO LARGE

494

Nginx internal code used when SSL client certificateerror occurred to distinguish it from 4XX in a log andan error page redirection.

CERT ERROR495

Nginx internal code used when client didn’t providecertificate to distinguish it from 4XX in a log and anerror page redirection.

NO CERT496

Page 18: HTTP Status Codes Cheat Sheet: An Exhaustive List

STATUS CODES CODE MEANING

4xx Client Error

Nginx internal code used for the plain HTTP requeststhat are sent to HTTPS port to distinguish it from 4XXin a log and an error page redirection.

HTTP TO HTTPS497

Returned by ArcGIS for Server.

A code of 498 indicates an expired or otherwiseinvalid token.

TOKEN EXPIRED/INVALID498

Used in Nginx logs to indicate when the connectionhas been closed by client when the server is stillprocessing its request, making server unable to senda status code back.

CLIENT CLOSED REQUEST499

Returned by ArcGIS for Server.

A code of 499 indicates that a token is required.

TOKEN REQUIRED499

Page 19: HTTP Status Codes Cheat Sheet: An Exhaustive List

The server is currently unavailable. Generally, this isa temporary state (due to overload or maintenance).

SERVICE UNAVAILABLE503

STATUS CODES CODE MEANING

A generic error message, given when an unexpectedcondition was encountered and no more specificmessage is suitable.

INTERNAL SERVER ERROR500

The server either does not recognize the requestmethod, or it lacks the ability to fulfill the request.Usually this implies future availability.

NOT IMPLEMENTED501

The server was acting as a gateway or proxy andreceived an invalid response from the upstream server.

BAD GATEWAY502

5xx Server Error

Page 20: HTTP Status Codes Cheat Sheet: An Exhaustive List

The server was acting as a gateway or proxy and didnot receive a timely response from the upstream server.

GATEWAY TIMEOUT504

The server does not support the HTTP protocol version used in the request.

HTTP VERSION NOT SUPPORTED

505

Transparent content negotiation for the requestresults in a circular reference.

VARIANT ALSONEGOTIATES

506

The server is unable to store the representationneeded to complete the request.

INSUFFICIENT STORAGE507

The server detected an infinite loop while processingthe request.

LOOK DETECTED508

This status code is not specified in any RFCs.Its use is unknown.

BANDWIDTH LIMITEXCEEDED

509

STATUS CODES CODE MEANING

5xx Server Error

Page 21: HTTP Status Codes Cheat Sheet: An Exhaustive List

Further extensions to the request are required forthe server to fulfill it.

NOT EXTENDED510

The client needs to authenticate to gain networkaccess. Intended for use by intercepting proxies usedto control access to the network.

NETWORK AUTHENTICATION REQUIRED

511

This status code is not specified in any RFCs, but isused by CloudFlare’s reverse proxies to signal an“unknown connection issue between CloudFlare andthe origin web server” to a client in front of the proxy.

ORIGIN ERROR 520

This code is not specified in any RFCs, but is used byCloudFlare’s reverse proxies to indicate that the origin web server refused the connection.

WEB SERVER IS DOWN521

This code is not specified in any RFCs, but is used byCloudFlare’s reverse proxies to signal a network readtimeout behind the proxy to a client in front of the proxy.

CONNECTION TIMED OUT

522

STATUS CODES CODE MEANING

5xx Server Error

Page 22: HTTP Status Codes Cheat Sheet: An Exhaustive List

This code is not specified in any RFCs, but is used byCloudFlare’s reverse proxies to signal a resource thathas been blocked by the administrator of the websiteor proxy itself.

PROXY DEADLINE REQUEST523

This code is not specified in any RFCs, but is used byMicrosoft HTTP proxies to signal a network read timeout behind the proxy to a client in front ofthe proxy.

A TIMEOUT OCCURRED524

This code is not specified by any RFCs, but is used byMicrosoft HTTP proxies to signal a network read timeout behind the proxy to a client in front ofthe proxy.

NETWORK READTIMEOUT ERROR

598

This code is not specified by any RFCs, but is used byMicrosoft HTTP proxies to signal a network connect timeout behind the proxy to a client in front ofthe proxy.

NETWORK CONNECTTIMEOUT ERROR

599

STATUS CODES CODE MEANING

5xx Server Error

Page 23: HTTP Status Codes Cheat Sheet: An Exhaustive List

http://en.wikipedia.org/wiki/List_of_HTTP_status_codes

http://cdn.marketingtopics.com/wp/38267/38267.pdf?utm_source=MailingList&utm_medium=email&utm_campaign=Network+Instruments+US+02.09.14

www.mainstreethost.com

References

BROUGHT TO YOU BY: