HTTP response status code

Pradeep R.R.
YavarTechWorks
Published in
3 min readAug 30, 2022

Hi! friends I share my knowledge about HTTP status code.

HTTP status code are response code that is returned by web servers along with responses indicating whether a request sent by the client was processed to get the result is successfully or not.

There are group of five class of status code available,

  1. Informational response(1xx)
  2. Successful response(2xx)
  3. Redirection response(3xx)
  4. Client error response(4xx)
  5. Server error response(5xx)

(1xx) Informational response

100 continue

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

101 Switching protocols

The request has asked the server to switch the protocol.

102 Processing

The request from the client to the server that may contain multiple of sub request that takes a longtime to process it .the server received the request and is processing the request and the final response cannot received yet.

(2xx) Successfull

200 Ok

The request has succeeded the response can sent the method.The meaning of http status code 200 is http request method.

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

2.PUT :The representation of status action

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

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

201 Created

The request has been fulfilled and the new resource is created.

202 Accepted

The request is accepted for processing and the response is not completed.

203 Non Authorative information

The request has been successfully processed, but is returning information that may be from another source

204 no content

205 Reset Content

(4xx) ClientError

400 Bad request

The 400 (Bad Request) status code indicates that the server cannot or
will not process the request due to something that is perceived to be
a client error (e.g., malformed request syntax, invalid request
message framing, or deceptive request routing).

401 Unauthorized

The request needs the username and password.

403 Forbidden

The request was a legal request, but the server is refusing to respond to it

404 Not Found

The server cannot find the requested page.

405 method not allowed

status code indicates that the method received in the request-line is known by the origin server but not supported by the target resource.

(5xx) Server Error response

500 Internal server error

The server has encountered the situation but it doesn’t know how to handle it.

502 Bad Gateway

The 502 (Bad Gateway) status code indicates that the server, while
acting as a gateway or proxy, received an invalid response from an
inbound server it accessed while attempting to fulfill the request.

--

--