# Errors

Onehub uses conventional [HTTP response codes](https://en.wikipedia.org/wiki/List_of_HTTP_status_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.

{% hint style="info" %}
We strive to include helpful information with all of our responses. However, if you think something useful is missing, [let us know](mailto:support@onehub.com) and we'll consider adding it.
{% endhint %}
