This post provides a list of commonly used HTTP status codes or response codes as part of the communication between a client and a web server. It also provides the description and usage of these status codes. The web server replies to the client request by sending the appropriate response code based on the request and response generated by the server.
Class 1xx - Informational
The class 1xx status codes are to acknowledge that the request has been received, understood by the server, and to continue for further processing the request.
100 - Continue
The server has received the request headers and the client can continue further sending the request body where required.
101 - Switching Protocols
The client has asked the server to switch the protocol and the server agreed to do so using the Upgrade header message field. The server will switch protocols and specify the same in response's Upgrade header field.
102 - Processing
The server is taking the time to process the request and updates the client to wait until the server process the request without timing out the request.
Class 2xx - Success
The class 2xx status codes are to acknowledge that the request was received, understood, and accepted by the server.