Errors
The Dock2Dock API provides the following response and error codes to help understand and debug in the moment. Use the debugging guide and error index below for additional context.
Successful responses are indicated with a 200-series HTTP code.
Error responses are served with a non-200-series HTTP code. Different error codes indicate different reasons for an error. The Dock2Dock API attempts to return appropriate HTTP status codes for every request.
Example Error Response
{
"statusCode": 404,
"message": "Unable to find sales order",
"code": "NOT_FOUND",
"context": {
"url": "https://api.dock2dock.io/crossdocklabel/create",
"method": "POST"
}
}
Error Codes
Code | Description | Http Status Code |
---|---|---|
VALIDATION | Validation Errors | 400 |
BAD_REQUEST | Bad Request | 400 |
UNAUTHORISED | Unauthorised | 401 |
NOT_FOUND | Not Found | 404 |
UNPROCESSABLE_CONTENT | Unprocessable Entity Found | 422 |
INTERNAL_SERVER | Internal Server | 500 |