HTTP response status codes can be categorized as follows:
- Informational (100 – 199)
- Successful (200 – 299)
- Redirection (300 – 399)
- Client error (400 – 499)
- Server error (500 – 599)
Informational
It ranges from 100 – 199 and is a provisional response.
Eg: 100 – continue, 101 – switching protocols
Successful
It ranges from 200 – 299 and indicates that the request is successfully processed.
Eg: 200 – Ok, 201 – created, 202 – accepted, 204 – no content
Redirection
It ranges from 300 – 399 and it means the requested resource is moved.
Eg: 301 – Moved permanently, 302 – found (temporarily moved)
Client error
It ranges from 400 – 499 and indicates that the client contains incorrect syntax or data.
Eg: 400 – bad request, 401 – unauthorized, 403 – forbidden, 404 – not found, 405 – method not allowed
Server error
It ranges from 500 – 599 and indicates error occurred on the server.
Eg: 500 – Internal server error, 502 – bad gateway, 503 – service unavailable