HTTP Status Codes With Example

HTTP response status is identified using Hypertext Transfer Protocol (HTTP) codes. There are five different types of HTTP status codes. Each one has a three-digit integer value. The class of code response is defined by the first digit of the HTTP Status Code, and the class of codes is represented by the final two digits.

S.N.CodeDescription
11xx: InformationalThis Classes codes notify the request has been received and the process is continuing.
22xx: SuccessThis classes of HTTP code notify the action was successfully received, understood, and accepted.
33xx: RedirectionNeed to further action must be taken in order to complete the request.
44xx: Client ErrorThe request contains incorrect syntax or cannot be fulfilled.
55xx: Server ErrorIts notify the server failed to fulfill an apparently valid request.

1xx: Information

S.N.CodeDescription
1100Continue – The first part of a request has been received without any problems to the server.The Client continue to send rest of the request.
2101Switching Protocols – The server is changing to the protocol it defines in the “Upgrade” header it returns to the client.
3102Processing – Notify client that the server has accepted the request, but has not yet completed it.

2xx: Successful

S.N.CodeDescription
1200The request is OK.
2201A new resource is created.
3202The request is accepted for processing.
4203Non-authoritative Information
5204No Content
6205Reset Content
7206Partial Content

3xx: Redirection

S.N.CodeDescription
1300Multiple Choices
2301Moved Permanently
3302url not found, The requested page has moved temporarily to a new url .
4303See Other
5304URL has not been modified since the specified date.
6305Use Proxy
7306Unused Code or old code
8307Temporary Redirect

4xx: Client Error

S.N.CodeDescription
1400Bad Request
2401Unauthorized access
3402Payment Required
4403Access is forbidden.
5404Requested page not found.
6405Request method Not Allowed
7406Not Acceptable
8407Proxy Authentication Required
9408Request Timeout
10409Conflict
11410Gone
12411Length Required
13412Precondition Failed
14413Request Entity Too Large
15414Request-url Too Long
16415Unsupported Media Type
17416Requested Range Not Satisfiable
17416Expectation Failed

5xx: Server Error

S.N.CodeDescription
1500Internal Server Error
2501Not Implemented
3502Bad Gateway
4503Service Unavailable
5504Gateway Timeout
6505HTTP Version Not Supported