Skip to main content

Error format

Errors returned by the HUB2 API use the following format (some compliance endpoints return statusCode, message and error for 404 responses). Requests rejected by the web application firewall return a 403 with an HTML body instead (see Security).

Example: error 404

Include the request_id value when contacting HUB2 Support; it allows the team to find your request and respond faster.

Error codes

HTTP status codes

The HTTP status alone does not identify the error: several error codes share the same status. Use the code field of the response body to tell them apart.
Standard HTTP status codes that the HUB2 API can return:

Application error codes

Application error codes that the HUB2 API may return:

Extra fields of possible_duplicate

The body of a possible_duplicate error carries four fields in addition to the usual format:

Extra fields of other duplicate errors

Two other errors add one field to the usual format: Duplicate protection is not enabled by default: contact HUB2 Support to enable it. See Retrying a payout safely.