- 200 => OK, general indication of request success.
- 201 => Created, typically used for POST and PUT request.
- 204 => No Content, typically means request is processed successfully but no data is found on server for the request.
- 301 => Redirect permanently, new URL is returned and the client should send to the new URL directly for the future requests.
- 302 => Redirect temporarily. Future request from client should send to the same URL.
- 400 => Bad request, used to tell client the request contains invalid data.
- 401 => Unauthorized, this actually tells the client they are not authenticated to access the requested data.
- 403 => Forbidden, this tells the client that they are denied to access the content.
- 404 => Not found, tells the client the requested resource is not found on the server.
- 429 => Too Many Requests, tells the client that they have reached the limit of allowed number of requests in a given amount of time.
- 500 => Internal Server Error, tells the client there is a error happened during the processing of the request. This usually happens when error/exception raised when try to get data from database.
- 501 => Not Implemented, tells the client the request can not be fulfilled (but may be available in the future).
- 502 => Bad Gateway, this usually send from gateway server that it got a invalid response from service server.
- 503 => Service Unavailable, this indicates the server is not able to handle the request due to overload or downtime.
- 504 => Gateway Timeout, this is given when the gateway server is timed out when waiting for a response from the service server.