HTTP Response Code

When a HTTP request is fired by the browsers then a sequence of task a performed. Like First server accept that request and then search the resources which are required by request then these resource and other information are send back to the browsers . Our browsers shows these all request and responses in the form of Predefine Codes Which are known as Status Code. Each specific code explain a Different Information. If we have a knowledge of some basic Status Code then we can find that what is really happen when we post a request to a specific server. You can See these Status Code Network tab of Inspect Element.

Some Codes which are commonly used are below:

Status Code:

Status

Description

200

OK

Standard response for successful HTTP requests. The actual response will depend on the request method used.

GET: The resource has been fetched and is transmitted in the message body.

TRACE: The message body contains the request message as received by the server

POST: The resource describing the result of the action is transmitted in the message body.

201

Created

The request has succeeded and a new resource has been created as a result of it. This is typically the response sent after a PUT request.

204

No Content

There is no content to send for this request, but the headers may be useful

302

Found

It means a new URL is found by the browser and Previous Url will change

404

Not Found

Server can not found the Requested Resource

408

Request Timeout

This code is used by server when a connection is timeout.

505

HTTP Version Not Supported

The HTTP version used in the request is not supported by the server.

These are some Important Status code which are commonly used by HTTP for establish a communication b/w Server and Browser. You can examine all these code in a browser in Network tab of Inspect Element of A browser .

Next Recommended Reading HTTP Status Codes