Errors
How the API reports failed requests.
Responses use conventional HTTP status codes. Codes in the 2xx range mean the request succeeded. Codes in the 4xx range mean a client error, such as invalid or missing parameters, failed authentication, or a malformed request. Codes in the 5xx range mean an error on Oktopost's side.
Error Response
Every response contains a Result field that indicates whether the request succeeded. When it fails, the response also includes an Errors field:
{
"Result": false,
"Errors": {
"API": {
"Error": "The page you are looking for was not found"
}
}
}HTTP Status Codes
Prop
Type