Response handling
Response codes
The Shipper API supports default HTTP response codes:
Status code | Response type |
---|---|
2xx | Successful response |
3xx | Redirection |
4xx | Client/validation errors |
5xx | Server errors |
Response body format
The API generally returns a JSON response similar to JSend.
Single object
|
|
For example, a response with a load offer:
|
|
List of objects
|
|
The list of load offers:
|
|
See also pagination and sorting.
Error handling
The API returns a standard 4xx HTTP validation response when a request has validation issues. For authentication issues the API just returns 401 UNAUTHORIZED
without the response body. In other cases the API returns more descriptive response with more details:
For example, when a requested load offer isn’t found the response status is 404 NOT FOUND
and the body is:
|
|