Hypertext Transfer Protocol (HTTP) is the base of data communication on internet. Client sends request from browser to the server. And server sends response back to the client. Along with response, server sends response code as well. There are five types of response send by the server.
- 1xx – Informational response
- 2xx – Successful
- 3xx. – Redirection
- 4xx. – Client Error
- 5xx – Server Error
Like when a successful response is send back by the server the response code is 200 OK. Below are the list of main response codes sent by the server.
Code | Description |
200 | OK |
201 | Created |
301 | Moved Permanently |
304 | Not Modified |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidding |
404 | Not Found |
422 | Unprocessable Entity |
500 | Internal Server Error |
505 | HTTP version not supported |
To read further about HTTP status code you can refer Mozilla documentation.