Skip to main content

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

CodeDescriptionHttp Status Code
VALIDATIONValidation Errors400
BAD_REQUESTBad Request400
UNAUTHORISEDUnauthorised401
NOT_FOUNDNot Found404
UNPROCESSABLE_CONTENTUnprocessable Entity Found422
INTERNAL_SERVERInternal Server500