# Errors

Every `code` value has its own page: what happened and what to do.

| Code | What happened |
|---|---|
| [`missing_token`](https://developers.donatty.com/en/errors/missing_token.md) · 401 | There is no `Authorization` header. |
| [`invalid_token`](https://developers.donatty.com/en/errors/invalid_token.md) · 401 | The key is unknown or malformed. |
| [`token_expired`](https://developers.donatty.com/en/errors/token_expired.md) · 401 | The key has expired. |
| [`token_in_query`](https://developers.donatty.com/en/errors/token_in_query.md) · 400 | The key is in the request address. |
| [`wrong_token_type`](https://developers.donatty.com/en/errors/wrong_token_type.md) · 403 | This is not a key for the public API. |
| [`insufficient_scope`](https://developers.donatty.com/en/errors/insufficient_scope.md) · 403 | The key lacks the scope the method requires. |
| [`origin_not_allowed`](https://developers.donatty.com/en/errors/origin_not_allowed.md) · 403 | The website address is not allowed for this key. |
| [`invalid_parameter`](https://developers.donatty.com/en/errors/invalid_parameter.md) · 400 | A parameter value is not valid. |
| [`not_found`](https://developers.donatty.com/en/errors/not_found.md) · 404 | There is no method at this address. |
| [`rate_limited`](https://developers.donatty.com/en/errors/rate_limited.md) · 429 | The request limit is exhausted. |
| [`internal_error`](https://developers.donatty.com/en/errors/internal_error.md) · 500 | We couldn't complete your request. |
| [`service_unavailable`](https://developers.donatty.com/en/errors/service_unavailable.md) · 503 | The API is temporarily unavailable. |
