As with this post we discussed the types of API requests. All of these requests are sent from client to the server. The server responds back with a response and this response will have a status code which states what happened with the request, whether it is success or failure
Below is an easy way to remember what they actually mean
1xx: Information
It is just for informational purpose.
2xx: Successful
This states if the response is successful.
3xx: Redirection
This states when the request is redirected to a new endpoint.
4xx: Client Error
It states the error sent incorrect data to client.
5xx: Server Error
It states the issue is with server.
Top comments (0)