Search…
Errors
Damn it. What happened now?

HTTP Errors

Here is a list of the most common HTTP errors you'll encounter. All errors return in a JSON format. In addition to returning the HTTP status codes, we also return an error message. There are different error types that are specific to certain use cases in the API.
HTTP Errors
JSON Error Messages
HTTP Status Code
Short Description
Description
200
OK
The action requested by the client was received, understood and accepted.
400
Bad Request
Cannot process the request. Most often because of a malformed syntax.
401
Unauthorized
The client is not authorized to make this API request.
403
Forbidden
You shall not pass. The user might not have the right permissions or may need a particular account.
404
Not Found
The resource requested is, wait for it, not found.
500
Internal Server Error
There was an unexpected error. This might be our bad, sorry.
503
Timed Out
The request timed out. There is a 30 second limit.
Error Type
HTTP Status Code
Description
ValidationError
400
Most often caused by a malformed syntax.
FieldDoesNotExist
400
A PUT request that tries to update a field that does not exist.
StateMachineError
400
An object is not allowed to change state in the order requested.
AuthorizationError
401
The client is not authorized to perform this request.
DoesNotExist
404
Used in GET request when querying for a specific ID and it doesn't exist.
The errors come in this format:
1
{
2
"code": <status code>,
3
"message": <A short message regarding the error>,
4
"description": <A generic description of the error>,
5
"error": {
6
"type": <The error type above>,
7
"exception_description": <A more specific error description>
8
}
9
}
Copied!
The description in the returned errors may vary slightly between different API calls.
Core SDK & Node SDK
Python SDK
1
builton.products.get('58ab022id0n7ex1st3045dbf').then((product) => {
2
console.log(product);
3
}).catch((err) => {
4
console.error(err.response.body);
5
/*
6
{
7
code: 404,
8
message: 'Getting product failed.',
9
description: 'getting product:58ab022id0n7ex1st3045dbf failed',
10
error:
11
{ type: 'DoesNotExist',
12
exception_description: 'the Product with id: \'58ab022id0n7ex1st3045dbf\' does not exist',
13
params: '58ab022id0n7ex1st3045dbf'
14
}
15
}
16
*/
17
});
Copied!
1
try:
2
builton.product().get('58ab022id0n7ex1st3045dbf')
3
except Exception as error:
4
print(error)
5
6
"""
7
{
8
'code':404,
9
'message':'Getting product failed.',
10
'description':'getting product:58ab022id0n7ex1st3045dbf failed',
11
'error':{
12
'type':'DoesNotExist',
13
'exception_description':"the Product with id: '58ab022id0n7ex1st3045dbf' does not exist",
14
'params':'58ab022id0n7ex1st3045dbf'
15
}
16
}
17
"""
Copied!
Copy link