0% found this document useful (0 votes)
7 views4 pages

The Status code

Uploaded by

SANDIPAN BERA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views4 pages

The Status code

Uploaded by

SANDIPAN BERA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

The Status-Code element in a server response, is a 3-digit integer

where the first digit of the Status-Code defines the class of


response and the last two digits do not have any categorization
role. There are 5 values for the first digit:

S.N. Code and Description

1xx: Informational
1
It means the request has been received and the process is continuing.

2xx: Success
2
It means the action was successfully received, understood, and accepted.

3xx: Redirection
3
It means further action must be taken in order to complete the request.

4xx: Client Error


4
It means the request contains incorrect syntax or cannot be fulfilled.

5xx: Server Error


5
It means the server failed to fulfill an apparently valid request.

HTTP status codes are extensible and HTTP applications are not
required to understand the meaning of all the registered status
codes. Given below is a list of all the status codes.

1xx: Information
Message Description

Only a part of the request has been received by the server, but as long as it has
100 Continue
not been rejected, the client should continue with the request.

101 Switching
The server switches protocol.
Protocols

2xx: Successful
Message Description

200 OK The request is OK.

201 Created The request is complete, and a new resource is created .

202 Accepted The request is accepted for processing, but the processing is not complete.

203 Non- The information in the entity header is from a local or third-party copy, not
authoritative
from the original server.
Information

A status code and a header are given in the response, but there is no entity-
204 No Content
body in the reply.

The browser should clear the form used for this transaction for additional
205 Reset Content
input.

The server is returning partial data of the size requested. Used in response to
206 Partial Content a request specifying a Range header. The server must specify the range
included in the response with the Content-Range header.

3xx: Redirection
Message Description

300 Multiple A link list. The user can select a link and go to that location. Maximum five
Choices addresses .

301 Moved
The requested page has moved to a new url .
Permanently

302 Found The requested page has moved temporarily to a new url .

303 See Other The requested page can be found under a different url .

This is the response code to an If-Modified-Since or If-None-Match header,


304 Not Modified
where the URL has not been modified since the specified date.

The requested URL must be accessed through the proxy mentioned in


305 Use Proxy
the Location header.

This code was used in a previous version. It is no longer used, but the code is
306 Unused
reserved.

307 Temporary
The requested page has moved temporarily to a new url.
Redirect

4xx: Client Error


Message Description

400 Bad Request The server did not understand the request.

401 Unauthorized The requested page needs a username and a password.

402 Payment Required You can not use this code yet.
403 Forbidden Access is forbidden to the requested page.

404 Not Found The server can not find the requested page.

405 Method Not


The method specified in the request is not allowed.
Allowed

The server can only generate a response that is not accepted by the
406 Not Acceptable
client.

407 Proxy
You must authenticate with a proxy server before this request can be
Authentication
served.
Required

408 Request Timeout The request took longer than the server was prepared to wait.

409 Conflict The request could not be completed because of a conflict.

410 Gone The requested page is no longer available .

The "Content-Length" is not defined. The server will not accept the
411 Length Required
request without it .

412 Precondition Failed The pre condition given in the request evaluated to false by the server.

413 Request Entity Too The server will not accept the request, because the request entity is too
Large large.

The server will not accept the request, because the url is too long.
414 Request-url Too
Occurs when you convert a "post" request to a "get" request with a long
Long
query information .

415 Unsupported The server will not accept the request, because the mediatype is not
Media Type supported .

416 Requested Range


The requested byte range is not available and is out of bounds.
Not Satisfiable

The expectation given in an Expect request-header field could not be


417 Expectation Failed
met by this server.

5xx: Server Error


Message Description

The request was not completed. The server met an unexpected


500 Internal Server Error
condition.

The request was not completed. The server did not support the
501 Not Implemented
functionality required.
The request was not completed. The server received an invalid
502 Bad Gateway
response from the upstream server.

The request was not completed. The server is temporarily


503 Service Unavailable
overloading or down.

504 Gateway Timeout The gateway has timed out.

505 HTTP Version Not


The server does not support the "http protocol" version.
Supported

You might also like