Along with all of the typical API responses will also be a certain status codes. Below are the list of status codes and what the causes them to be returned.
This is returned on all
DELETE methods and therefore are returned on the
This status code is returned whenever the user creates a new entry into the API. These are returned on
POST requests and therefore whenever the user uses the
This is called whenever the client doesn't supply a token used for authentication.
This is returned whenever the client supplies a token but it is not correct or if the user does not have a correct permission scope to access that endpoint.
This is used whenever the user tries to specify an action that is not supported by the endpoint. For example, this can be called whenever the user tries to update a record (
PUT) that can only be read (
GET) or created (
This is used if you have a rate limiting class on the resource and the client has hit their rate limit.
This is called whenever there has been an error on the server for whatever reason. These typically include database errors such as a duplicate email address or other related database errors.