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 codes 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. |
Code |
Description |
1 |
1xx: Informational |
This Classes codes notify the request has been received and the process is continuing. |
2 |
2xx: Success |
This classes of HTTP code notify the action was successfully received, understood, and accepted. |
3 |
3xx: Redirection |
Need to further action must be taken in order to complete the request. |
4 |
4xx: Client Error |
The request contains incorrect syntax or cannot be fulfilled. |
5 |
5xx: Server Error |
Its notify the server failed to fulfill an apparently valid request. |
1xx: Information
S.N. |
Code |
Description |
1 |
100 |
Continue – The first part of a request has been received without any problems to the server.The Client continue to send rest of the request. |
2 |
101 |
Switching Protocols – The server is changing to the protocol it defines in the “Upgrade” header it returns to the client. |
3 |
102 |
Processing – Notify client that the server has accepted the request, but has not yet completed it. |
2xx: Successful
S.N. |
Code |
Description |
1 |
200 |
The request is OK. |
2 |
201 |
A new resource is created. |
3 |
202 |
The request is accepted for processing. |
4 |
203 |
Non-authoritative Information |
5 |
204 |
No Content |
6 |
205 |
Reset Content |
7 |
206 |
Partial Content |
3xx: Redirection
S.N. |
Code |
Description |
1 |
300 |
Multiple Choices |
2 |
301 |
Moved Permanently |
3 |
302 |
url not found, The requested page has moved temporarily to a new url . |
4 |
303 |
See Other |
5 |
304 |
URL has not been modified since the specified date. |
6 |
305 |
Use Proxy |
7 |
306 |
Unused Code or old code |
8 |
307 |
Temporary Redirect |
4xx: Client Error
S.N. |
Code |
Description |
1 |
400 |
Bad Request |
2 |
401 |
Unauthorized access |
3 |
402 |
Payment Required |
4 |
403 |
Access is forbidden. |
5 |
404 |
Requested page not found. |
6 |
405 |
Request method Not Allowed |
7 |
406 |
Not Acceptable |
8 |
407 |
Proxy Authentication Required |
9 |
408 |
Request Timeout |
10 |
409 |
Conflict |
11 |
410 |
Gone |
12 |
411 |
Length Required |
13 |
412 |
Precondition Failed |
14 |
413 |
Request Entity Too Large |
15 |
414 |
Request-url Too Long |
16 |
415 |
Unsupported Media Type |
17 |
416 |
Requested Range Not Satisfiable |
17 |
416 |
Expectation Failed |
5xx: Server Error
S.N. |
Code |
Description |
1 |
500 |
Internal Server Error |
2 |
501 |
Not Implemented |
3 |
502 |
Bad Gateway |
4 |
503 |
Service Unavailable |
5 |
504 |
Gateway Timeout |
6 |
505 |
HTTP Version Not Supported |