The error format in HUB2 API is being standardized.
Below are the fields in the standardized response along with an example:
Currently, it is necessary to set the header ‘x-use-standardized-error’ === true to obtain this standardized format.
Starting from October the 1st of 2024, this error format will be the only one returned by the HUB2 API.
Therefore, merchants needs to update their integration before this deadline.
Sample : Error 404
Note: the field request_id is a unique request identifier that will allow HUB2 Support team to respond more quickly in case of help requests.
Error codes
HTTP status codes
HTTP status codes do not indicate application errors.
Standard HTTP status codes that can be returned by the HUB2 API :
Application error codes
Application error codes that may be returned by the HUB2 API :