AniAPI uses conventional HTTP response codes to indicate the success or failure of an API request. As a summary:
2xxrange indicates success
4xxrange indicates an error regarding the information provided (e.g., a required parameter missing, a resource not found, etc)
5xxrange indicates an error with AniAPI's server
HTTP errors are returned inside the HTTP response header, instead API errors are returned inside the HTTP response body!
When an API request gets an HTTP
200 status code as a response, it could mean that the API response contains an error.
These are the possible errors you can have:
|Everything worked as expected|
|The request was unacceptable, often due to missing a required parameter|
|The user is not able to authenticate|
|The user doesn't have permissions to perform the request|
|The requested resource doesn't exist|
|Too many requests hit the API too quickly from the same origin|
|Something went wrong on AniAPI's end|
We recommend to focus on HTTP errors just for Authentication or network problems.