Challonge API is RESTful and uses conventional HTTP response codes to indicate the success or failure of the API request. The table below will help you identify the meaning and the implication of error responses.
As a general rule of thumb:
2xx
range codes indicate success4xx
range codes indicate a failure from the given information (e.g missing API identifiers, invalid parameters, failed transactions, etc.)5xx
range codes indicate an error on the platform itself.200 OK
Retrieving and updating a resource uses 200
HTTP code.
201 Created
Creating a resource uses 201
HTTP Code.
204 No Content
Deleting a resource uses 204
HTTP Code.
400 Bad Request
The request was not understood, often causes by missing parameters, invalid payload format, validation or processing errors.
401 Unauthorized