Error Codes

CodeNameNotes
1xx
100
101
102
Informational
Continue
Switching protocol
Processing request
A web server responds with a 1xx HTTP status code when the received request is under process by the server and these codes are kind of acknowledgement to the client. As 1xx HTTP codes are only meant for informational purposes, browsers and user agents will not process and show these errors on the frontend screen like other series of error. Browsers ignore these status codes and continue to process the remaining part of the requests.
2xx
201
202
203
204
205
206
207
208
226
Success
Created OK
Accepted
Non-authoritative information
No content
Reset content
Partial content
Multi-status
Already reported
Request used
These codes indicates that your request was successful. It means that the server received your request, understood it, accepted it and processed it. Most of the time this translates to a confirmation page that states the server performed what you requested.
3xx
300
301
302
303
304
305
307
308
Redirection
Multiple choices
Moved permanently
Found
See other
Not modified
Use proxy
Temporary redirect
Permanent redirect
These codes tell the client to look for the requested resource somewhere else.
4xx
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
421
422
423
424
426
428
429
431
444
451
499
Client Error
Bad request
Unauthorized
Payment required
Forbidden
Resource not found
Method not allowed
Not acceptable
Proxy authentication required
Request timeout
Conflict
Resource removed
Length required
Precondition failed
Payload too large
Request URI too long
Unsupported media type
Requested range not satisfiable
Expectation failed
I’m a teapot
Misdirected request
Un-processable entity
Locked
Failed dependency
Upgrade required
Precondition required
Too many requests
Request header fields too large
Connection closed without response
Unavailable For legal reasons
Client closed request
The 4xx class of status code is intended for cases in which the client seems to have erred. These HTTP status codes indicate that the request for the resource contains bad syntax or cannot be filled for some other reason, presumably by a fault of the client sending the request. The server should include an explanation of the error situation and whether it is a temporary or permanent condition.
5xx
500
501
502
503
504
505
506
507
508
510
511
599
Server Error
Internal server error
Not implemented
Bad gateway
Service unavailable
Gateway timeout
HTTP version not supported
Variant also negotiates
Insufficient storage
Loop detected
Not extended
Network authentication required
Network connection timeout error
These HTTP status codes indicate that the server is aware it is on error or is incapable of performing the request. The server response usually includes an explanation of the error situation and whether it is a temporary or permanent condition.
The response codes in this group are applicable to any request method.

Error Descriptions

1XX: Informational
This class of status code indicates a provisional response. It consists of the status-line and optional headers, and is terminated by an empty line. There are no required headers for this class of status code.
Since HTTP/1.0 did not define any 1xx status codes, servers must not send a 1xx response to an HTTP/1.0 client except under experimental conditions. A client must be prepared to accept one or more 1xx status responses prior to a regular response, even if the client does not expect a 100 (Continue) status message. Unexpected 1xx status responses may be ignored by a user agent.
Proxies must forward 1xx responses, unless the connection between the proxy and its client has been closed, or unless the proxy itself requested the generation of the 1xx response. For example, if a proxy adds a "Expect: 100-continue" field when it forwards a request, then it need not forward the corresponding 100 (Continue) response(s)..

100: Continue
This interim response is used to inform the client that the initial part of the request has been received and has not yet been rejected by the server. The client should continue by sending the remainder of the request or, if the request has already been completed, ignore this response. The server must send a final response after the request has been completed.

101: Switching Protocols
The server understands and is willing to comply with the client's request, via the Upgrade message header field, for a change in the application protocol being used on this connection. The server will switch protocols to those defined by the response's Upgrade header field immediately after the empty line which terminates the 101 response. The protocol should be switched only when it is advantageous to do so. For example, switching to a newer version of HTTP is advantageous over older versions, and switching to a real-time, synchronous protocol might be advantageous when delivering resources that use such features.

2XX: Successful
This class of status code indicates that the client's request was received, understood, accepted and processed.

200: OK
Request succeeded. The information returned with the response depends on the method used in the request. For example:
GET an entity corresponding to the requested resource is sent in the response
POST an entity describing or containing the result of the action.

201: Created
This is the standard success response code returned when you request something from the API.

202: Accepted
The request is accepted for processing, but the processing is not completed yet. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place. There is no facility for re-sending a status code from an asynchronous operation such as this. The 202 response is intentionally non-committal. Its purpose is to allow a server to accept a request for some other process (perhaps a batch-oriented process that is only run once per day) without requiring that the user agent's connection to the server persist until the process is completed. The entity returned with this response should include an indication of the request's current status and either a pointer to a status monitor or some estimate of when the user can expect the request to be fulfilled.

203: Non-Authoritative Information
The returned metainformation in the entity-header is not the definitive set as available from the origin server, but is gathered from a local or a third-party copy. The set presented may be a subset or superset of the original version. For example, including local annotation information about the resource might result in a superset of the metainformation known by the origin server. Use of this response code is not required and is only appropriate when the response would otherwise be 200 (OK).

204: No Content
The server has fulfilled the request but does not need to return an entity-body, and might want to return updated metainformation. The response may include new or updated metainformation in the form of entity-headers, which if present should be associated with the requested variant. If the client is a user agent, it should not change its document view from that which caused the request to be sent.
This response is primarily intended to allow input for actions to take place without causing a change to the user agent's active document view, although any new or updated metainformation should be applied to the document currently in the user agent's active view.
The 204 response must not include a message-body, and thus is always terminated by the first empty line after the header fields.

205: Reset Content
The server has fulfilled the request. The user agent should reset the document view which caused the request to be sent.
This response is primarily intended to allow input for actions to take place via user input, followed by a clearing of the form in which the input is given so that the user can easily initiate another input action. The response must not include an entity.

3XX Redirection
This class of status code indicates that further action needs to be taken by the user agent in order to fulfill the request. The action required may be carried out by the user agent without interaction with the user only if the method used in the second request is GET or HEAD. A client should detect infinite redirection loops, because such loops generate network traffic for each redirection.

301: Moved Permanently
The requested resource has been assigned a new permanent URI and any future references to this resource should use one of the returned URIs. Clients with link editing capabilities ought to automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible. This response is cacheable unless indicated otherwise. The new permanent URI should be given by the Location field in the response. Unless the request method was HEAD, the entity of the response should contain a short hypertext note with a hyperlink to the new URI(s).
If the 301 status code is received in response to a request other than GET or HEAD, the user agent must not automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.

302: Found
The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client should continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field. The temporary URI should be given by the Location field in the response. Unless the request method was HEAD, the entity of the response should contain a short hypertext note with a hyperlink to the new URI(s).
If the 302 status code is received in response to a request other than GET or HEAD, the user agent must not automatically redirect the request unless it can be confirmed by the user, beacause this might change the conditions under which the request was issued.

303: See Other
The response to the request can be found under a different URI and should be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. The new URI is not a substitute reference for the originally requested resource. The 303 response must not be cached, but the response to the second (redirected) request might be cacheable.
The different URI should be given by the Location field in the response. Unless the request method was HEAD, the entity of the response should contain a short hypertext note with a hyperlink to the new URI(s).

304: Not Modified
This is the standard response code returned if nothing has been modified upon checking a collection or individual resource for changes.

305: Use Proxy
The requested resource must be accessed through the proxy given by the Location field. The Location field gives the URI of the proxy. The recipient is expected to repeat this single request via the proxy.
305 responses must only be generated by origin servers.

307: Temporary Redirect
The requested resource resides temporarily under a different URI. Since the redirection may be altered on occasion, the client should continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field. The temporary URI should be given by the Location field in the response. Unless the request method was HEAD, the entity of the response should contain a short hypertext note with a hyperlink to the new URI(s) , because many pre-HTTP/1.1 user agents do not understand the 307 status. Therefore, the note should contain the information necessary for a user to repeat the original request on the new URI.
If the 307 status code is received in response to a request other than GET or HEAD, the user agent must not automatically redirect the request unless it can be confirmed by the user, because this might change the conditions under which the request was issued.

4XX: Client Errors
The 4xx class of status code is intended for cases in which the client seems to have erred. Except when responding to a HEAD request, the server should include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. These status codes are applicable to any request method. User agents should display any included entity to the user. If the client is sending data, a server implementation using TCP should be careful to ensure that the client acknowledges receipt of the packet(s) containing the response, before the server closes the input connection. If the client continues sending data to the server after the close, the server's TCP stack will send a reset packet to the client, which may erase the client's unacknowledged input buffers before they can be read and interpreted by the HTTP application.

400: Bad Request
This is the standard success response code returned when the API has not recognized your request. When you get this error, check to make sure you are setting all the required headers correctly.

401: Unauthorized
The request requires user authentication. The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource. The client may repeat the request with a suitable Authorization header field.
If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials.
If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user should be presented the entity that was given in the response, as that entity might include relevant diagnostic information.
HTTP access authentication is explained in "HTTP Authentication: Basic and Digest Access Authentication".

403: Forbidden
This error code is most commonly seen when the API key being used is invalid or has been disabled. Please check the API key you are using. Also, check with us to see if your app has hit its limits. This is the standard success response code returned when a resource you have attempted to request is not allowed.

404: Resource not found
This is the standard success response code returned when an item you have requested cannot be found. When you get this error, check any ID that is carried in the API call you are making to ensure it is valid.
If attempting to create new records using HTTP PUT method, this error is returned because PUT only supports update operations for existing records.

405: Method Not Allowed
The method specified in the Request-Line is not allowed for the resource identified by the Request-URI. The response must include an Allow header containing a list of valid methods for the requested resource.

406: Not Accepted
The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request. Unless it was a HEAD request, the response should include an entity containing a list of available entity characteristics and location(s) from which the user or user agent can choose the most appropriate one. The entity format is specified by the media type given in the Content-Type header field. Depending on the format and capabilities of the user agent, selection of the most appropriate choice may be performed automatically. However, this specification does not define any standard for such automatic selection.
If the response is unacceptable, a user agent should> temporarily stop receipt of more data and query the user for a decision on further actions.

407: Proxy Authentication Required
This code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy. The proxy must return a Proxy-Authenticate header field containing a challenge applicable to the proxy for the requested resource. The client may repeat the request with a suitable Proxy-Authorization header field.

408: Request Timeout
The client did not produce a request within the time that the server was prepared to wait. The client may repeat the request without modifications at any later time.

409: Conflict
Indicates the request could not be processed because an update operation requires a valid RowVersion from the current entity being modified.

410: Resource removed
This is the standard success response code returned when a resource you requested has been removed.

411: Length Required
The server refuses to accept the request without a defined Content-Length. The client may repeat the request if it adds a valid Content-Length header field containing the length of the message-body in the request message.

412: Precondition Failed
The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server. This response code allows the client to place preconditions on the current resource metainformation (header field data) and thus prevent the requested method from being applied to a resource other than the one intended.

413: Request Entity Too Large
The request entity is larger than the server is willing or able to process. The server may close the connection to prevent the client from continuing the request.
If the condition is temporary, the server should include a Retry-After header field to indicate that it is temporary and after what time the client may try again.

414: Request-URI Too Long
The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret. This rare condition is only likely to occur when a client has improperly converted a POST request to a GET request with long query information, when the client has descended into a URI "black hole" of redirection (e.g., a redirected URI prefix that points to a suffix of itself), or when the server is under attack by a client attempting to exploit security holes present in some servers using fixed-length buffers for reading or manipulating the Request-URI.

415: Unsupported Media Type
The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.

416 : Requested Range Not Satisfiable
A server returns a response with this status code if a request included a Range request-header field, and none of the range-specifier values in this field overlap the current extent of the selected resource, and the request did not include an If-Range request-header field.
For byte-ranges, this means that the first- byte-pos of all byte-range-spec values were greater than the current length of the selected resource. When this status code is returned for a byte-range request, the response should include a Content-Range entity-header field specifying the current length of the selected resource. This response must not use the multipart/byteranges content- type.

417 : Expectation Failed
The expectation given in an Expect request-header field could not be met by this server, or, if the server is a proxy, the server has unambiguous evidence that the request could not be met by the next-hop server.

5XX: Server Error
Response status codes beginning with the digit "5" indicate cases in which the server is aware that it has erred or is incapable of performing the request. Except when responding to a HEAD request, the server includes an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. User agents should display any included entity to the user. These response codes are applicable to any request method.

500: Internal Server Error
This is the standard success response code returned when the server (or desktop API service) is misbehaving.

501: Not Implemented
This error code can occur if the server does not recognize the request method or it is unable to fulfill the request due to the feature not currently being available in the API.

502: Bad Gateway
While acting as a gateway or proxy, the server received an invalid response from the upstream server it accessed in attempting to fulfill the request.

503: Service Unavailable
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay may be indicated in a Retry-After header. If no Retry-After is given, the client should handle the response as it would for a 500 response.

504: Gateway Timeout
While acting as a gateway or proxy, the server did not receive a timely response from the upstream server specified by the URI (e.g. HTTP, FTP, LDAP) or some other auxiliary server (e.g. DNS) it needed to access in attempting to complete the request.

505: HTTP Version Not Supported
The server does not support, or refuses to support, the HTTP protocol version that was used in the request message. The server is indicating that it is unable or unwilling to complete the request using the same major version as the client, other than with this error message. The response should contain an entity describing why that version is not supported and what other protocols are supported by that server.