Skip to content

Instantly share code, notes, and snippets.

@MainakRepositor
Created November 8, 2021 07:29
Show Gist options
  • Save MainakRepositor/36d2d44c93bfa3297faf3187e508d01b to your computer and use it in GitHub Desktop.
Save MainakRepositor/36d2d44c93bfa3297faf3187e508d01b to your computer and use it in GitHub Desktop.
HTTP Status Codes
100 | Continue | The client request has been accepted
101 | Switching | Protocols The client has requested for switching the protocols and it is acknowledged.
200 | OK | Server successfully processed request.
201 | Created | Server successfully processed a request and created a new resource.
202 | Accepted | Processing request accepted but not completed yet.
203 | Non-Authoritative Information | Processed request and returning information from other sources.
204 | No content | Server processed request but there is no content to return to the client.
205 | Reset Content | When no content is returned but the request is successful, then the code signifies need to change document view.
206 | Partial Content | Only a part of the resource is send due smaller range header of the client.
300 | Multiple Choices | Indicates multiple options for the resources that the client may follow.
301 | Moved Permanently | The requested page has been permanently moved to a new location.
302 | Found Requested | resource is temporarily placed at some other location.
303 | See Other | Requested resources can be found at some other location using a GET method.
304 Not Modified | Indicates requested resources haven’t been modified since the last request.
305 | Use Proxy | Requester can only access the requested information using a proxy server.
306 | Switch Proxy | Obsolete from service. Shows 305
307 | Temporary redirect | Requested resources can be found at some other location using a POST method.
308 | Permanent Redirect | Indicates all future requests should be requested from another URL where the resources are shifted.
400 | Bad Request | Request cannot be fulfilled due to bad syntax.
401 | Unauthorized | Requires user authentication or login.
402 | Payment Method | Integrates requests dealing with transactions online.
403 | Forbidden | Request is valid but server has not given the rights to access the page.
404 | Page Not Found | Request was valid but the page requested doesn’t exist.
405 | Method Not Allowed | Specific method, such as GET, POST is not allowed in the requested page.
406 | Not Acceptable | Request sent is not appropriate for showing the page content.
407 | Proxy Authentication | Required This code indicates that a proxy authentication is needed for the requester to view the page.
408 | Request Timeout | Server timed out waiting for the response and session expired.
409 | Conflict | Request could not be completed due to current state of the server.
410 | Gone | Resources is not available at the server and will never be so again.
411 | Length Required | Server refuses to accept request without the defined content length
412 | Precondition Failed | Server does not meet one of the preconditions that the requester put on server.
413 | Requested Entity Too Large | Server is refusing to process request because it is larger than server capacity.
414 | Requested URI Too Long | Server is refusing to process request as the URL length is longer than standard URL.
415 | Unsupported Media Type | Request is refused because the because the request entity is not in a server-understandable format.
416 | Request Range not Satiable | Request is not in a range that the resources can satisfy.
417 | Expectation Failed | Server cannot meet the required request expectations.
500 Internal Server Error | Server encountered an unexpected error and connection was not possible.
501 Not Implemented | Server did not recognize the request method.
502 Bad Gateway | Proxy server receives an invalid error from an upstream server.
503 Service Unavailable | Server is unable to serve due to maintenance activities.
504 Gateway Timeout | Proxy server’s session expired while communicating with an upstream server.
505 HTTP Version Not Supported | The request protocol used is not supported by HTTP or is outdated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment