February 2018
Intermediate to advanced
406 pages
9h 55m
English
Make use of the standard HTTP status code to indicate the problem/error:
A sample error message is as shown in the following snippet:
{
"type": "error",
"status":400,
"code": "bad_request",
"context_info": {
"errors": [
{
"reason": "missing_argument",
"message": "order_id is required",
"name": "order_id",
"location": "query_param"
}
]
},
"help_url": "http://developers.some.com/api/docs/#error_code",
"message": "Bad Request"
"request_id": "8233232980923412494933"
}
Some examples of HTTP code usage are as follows:
Read now
Unlock full access