HTTP Status Codes

When TrainerCentral receives an API request, it returns an appropriate HTTP status code to indicate whether the request was successful or encountered an error.

TrainerCentral supports the following HTTP status codes:

HTTP Status CodeMessageDescription
200OKThe request was processed successfully.
201CreatedThe requested resource was created successfully.
204No ContentThe request was processed successfully, with no content to return.
400Bad RequestThe request contains invalid parameters, missing required fields, or incorrect input.
401UnauthorizedThe authentication credentials are missing, invalid, or have expired.
402Payment RequiredThe organization's current subscription or license does not support the requested operation.
403ForbiddenThe authenticated user does not have the required permissions to perform this operation.
404Not FoundThe requested resource or API endpoint could not be found.
405Method Not AllowedThe HTTP method used is not supported by this endpoint.
415Unsupported Media TypeThe request contains an unsupported media type or file format.
422Unprocessable EntityThe request syntax is valid, but the data provided does not meet the validation requirements or cannot be processed.
500Internal Server ErrorAn unexpected server error occurred while processing the request.