Errors

Maître uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the  2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, an update failed, etc.), and codes in the 5xx range indicate an error with Maître's servers (these are rare).

When a request returns an error we always try to provide a clear explanation of what went wrong.

Errors are returned as json files and follow the same structure:

{
  status: "error",
  message: "Error explanation" // Eg: "Missing API token"
  code: "error_code" // Eg: no_token
}

Status

Our API raises errors for many reasons and when this happens the "status" attribute will always be "error". 
We recommend writing code that gracefully handles all possible API exceptions.

Message

A human-readable message providing more details about the error.

Code

The type of error returned. See list of possible errors below:

Error codes Explanation
no_token "api_token" parameter is missing or blank
invalid_token "api_token" provided does not exist
inactive_account Account associated with this API token is inactive
too_many_calls Rate limit hit. Wait 60 minutes to reset the counter.
no_list_uuid "uuid" parameter is missing or blank
invalid_list "uuid" provided belongs to a list that is not associated to the current account
no_subscriber_id "subscriber_id" parameter is missing or blank
subscriber_not_found subscriber provided does not exist
no_email_address "email" parameter is missing or blank
invalid_email_address "email" provided is not a valid email. Check the "message" field for more details.
no_name "name" parameter is missing or blank
no_list_type "type" parameter is missing or blank
unknown_list_type "type" provided is not either one of "waitlist", "sweepstake" or "leadmagnet"
wrong_list_type Can't perform this action on this list. Eg: can't retrieve leaderboard out of a sweepstake or leadmagnet
no_points "points" parameter is missing or blank
no_hosting_url "hosting_url" parameter is missing or blank
error_list_creation Something went wrong when creating a new list.
subscriber_already_promoted Subscriber's already been promoted
subscriber_not_promoted Subscriber is not promoted, hence it can't be "unpromoted"


Still need help? Contact Us Contact Us