Status Codes

The status code of HTTP is one type of integer code.
Which is three-digit code, indicates the result code of request. From the first
digit of status code we can identify the class of response from. For example,
if a status code 200 found on client machine, then it means that this status
code is from the 2xx class which indicates the client request was successfully received,
understood and accepted.

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

Different classes of status code are listed below:

1xx (Informational):

This response indicates that the request has been received
and process is under progress.

100 Continue:

The status code 100(Continue) indicates that the
initial part of the request has not yet been rejected from the server and the
server will send the final response to the client after the request has been
fully received.

101 Switching Protocol:

The status code 101(Switching Protocol) indicates that
the client has request to the server to switch the protocols and the server
machine has accepted to do that.

2xx (Successful):

2xx class of status code results that the action is
received and it is also understood and accepted.

200 Ok:

The status code 200(Ok) indicates that the action has
succeeded and the payload has been sent in 200 response which is depends on
request method.

201 Created:

The status code 201(Created) indicates that the request
is fulfilled and fully accepted, and new resource will be created.

202 Accepted:

The status code 202(Accepted) indicates that the
action is completely accepted for processing from server side but the
processing is not yet completed.

203 Not Authoritative Information:

The status code 203(Not Authoritative Information) indicates
that the entity header information is third-party copy or from local server,
not from the original server.

204 No Content:

The status code
204(No Content) and a header are given in the response, but there is no indication
body in the response.

205 Reset Content:

The status code 205(Reset Content) indicates that the used
form for this transaction for additional input in the browser.

206 Partial Content:

The status code 206(Partial Content) indicates that
the server is returning the partial data of the size requested from client.

3xx Redirection:

In this class the remaining action must be taken for
completing the request.

300 Multiple Choices:

The status code 300(Multiple Choices) will display the
link list and from them the client can select a link and go to the expected
location or destination. Maximum five addresses could display.

301 Moved Permanently:

The status code 301(Moved Permanently) indicates that
the requested page has moved to the new URL in browser.

302 Found:

The status code 302(Found) indicates that the
requested page has moved temporarily to the new URL in browser.

303 See Other:

The status code 303(See Other) indicates that the
requested page will be displayed under the different URL in browser.

304 Not Modified:

The status code 304(Not Modified) indicates that the
URL has not modified since the last specific date.

305 Use Proxy:

The status code 305(Use Proxy) indicates that the
requested URL is accessed from a proxy server in the location header.

306 Unused:

This code is used in previous version. It is no longer
used but it is still reserved code.

307 Temporary Redirect:

The status code 307(Temporary Redirect) indicates that
the requested page has moved temporarily to the new URL in browser.

4xx Client Error:

This class will give all the client error where the
client request is not appropriate or cannot be fulfilled.

400 Bad Request:

The status code 400(Bas Request) indicate that the
server did not understand the requested action from client.

401 Unauthorised:

The status code 401(Unauthorised) indicates that the requested
page is credential protected and it needs a username and password.

402 Payment Required:

The status code 402(Payment Required) indicates that
the requested page needs the payment first and then it will be displayed.

403 Forbidden:

The status code 403(Forbidden) indicates that the
access of the page is forbidden.

404 Not Found:

The status code 404(Not Found) indicates that server
cannot found the requested page.

405 Method Not Allowed:

The status code 405(Method Not Allowed) indicates that
the method specified in the request is not allowed.

406 Not Acceptable:

The status code
406(Not Acceptable) indicates that the server can only generate a response that
is not accepted by the client.

407 Proxy Authentication Required:

The status code 407(Proxy Authentication Required)
indicates that you must authenticate with a proxy server before this request
can be served.

408 Request
Timeout:

The status code 408(Requested
Timeout) indicate that the request took longer than the server was prepared to
wait.

409 Conflict:

The status code 409(Conflict)
indicates that the request could not be completed because of a conflict.

410 Gone:      

This status code indicates
the requested page is no longer available. 

411 Length
Required:                      

This status code
indicates that the “Content-Length” is not defined. The server will
not accept the request without it. 

412 Precondition
Failed:     

This status code
indicates that pre-condition given in the request evaluated to false by the
server.

413 Request Entity
Too Large:      

This status code
indicates that the server will not accept the request, because the request
entity is too large.

414 Request-URL
Too Long:

This status code
indicates that the server will not accept the request, because the URL is too
long. Occurs when you convert a “post” request to a “get”
request with a long query information. 

415 Unsupported
Media Type:                   

This status code
indicates that the server will not accept the request, because the media type
is not supported. 

416 Requested
Range Not Satisfiable:                   

This status code
indicates that the requested byte range is not available and is out of bounds.

417 Expectation
Failed:       

His status code
indicates that the expectation given in an Expect request header field could
not be met by this server.

5xx: Server Error

It means the
server failed to fulfil an apparently valid request.

500 Internal Server
Error: 

This status code
indicates that the request was not completed. The server met an unexpected
condition.

501 Not
Implemented:         

This status code
indicates that the request was not completed. The server did not support the
functionality required.

502 Bad Gateway:    

The status code
indicates that the request was not completed. The server received an invalid
response from the upstream server.

503 Service
Unavailable:     

The status code
indicates that the request was not completed. The server is temporarily
overloading or down.

504 Gateway
Timeout:         

This status code indicates
that the gateway has timed out.

505 HTTP Version
Not Supported:

This status code indicates
that the server does not support the “http protocol” version.