Errors

Onehub uses conventional HTTP response codes to indicate success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the information provided, and codes in the 5xx range indicate an error with Onehub’s servers.

Not all errors map cleanly onto HTTP response codes. For example, a 302 Found will be returned when a non-HTTPS request is made against the API. In that example, the Location header in the response will contain the corrected URI, which should be used in a follow-up request.

We strive to include helpful information with all of our responses. However, if you think something useful is missing, let us know and we'll consider adding it.

Last updated