Request Errors

In the event of API request errors, AfterShip uses conventional HTTP response codes in the 4XX and 5XX range to indicate the reason behind the error along with the error code already defined in the response body.


In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error caused by the given information (E.g., you omitted a required parameter or a charge failed), and codes in the 5xx range indicate an error related to AfterShip’s servers.

HTTP Status Codemeta.codemeta.typeSample Error Message
401401UnauthorizedInvalid API Key.
40940901ConflictTransitionStatusesConflict transition statuses.
42242252InvalidTransitonStatusesInvalid transition statuses.
preparing...
preparing...
preparing...