Skip to main content

Error responses

For validation errors the Traede API will return 422 response and a response formatted like this

{
"errors": [
{
"status": 422,
"code": 10000,
"detail": "There is not enough in stock of SKU 3000-Black-W"
},
{
"status": 422,
"code": 10000,
"detail": "There is not enough in stock of SKU 5851-Black-S"
}
]
}

Notice that the error response can contains multiple error messages.