January 2018
Intermediate to advanced
336 pages
7h 56m
English
Status codes are important for clients to understand the outcome of the request and take required action on the response. Successful requests return a response with the required representation of resources, but failed requests generate a response representing the error instead. Status codes help clients to be well aware of the content of the response and take necessary action at the client side.
All microservices with RESTful APIs must support appropriate HTTP status codes (https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) and send them to the client based on the outcome of the requested operation. Some of the status codes that must be implemented by all APIs of microservices are:
| Status code | Usage |
| 200 OK | Standard ... |
Read now
Unlock full access