Error Codes

Parsing Errors

When interacting with the MOTAR API you may encounter various errors. Errors are returned from the API with the following structure:

{    "error_description": "Simple human-readable error.",    "error_code": "4-digit error code (see below)."}

If the response body for an error is unavailable in your client, the description and code are also returned as response headers.

Error Codes

400

  • 4000 - Generic bad request error.

  • 4001 - Parameter missing from request.

  • 4002 - Duplicate resource found.

  • 4003 - General validation error.

  • 4004 - Incorrect user type.

  • 4005 - Parameters unusable (wrong type or unparseable).

  • 4006 - Action impossible (i.e. sending a friend request to yourself).

  • 4007 - App is above its data limit.

  • 4008 - Token already used.

  • 4009 - Requested content has been flagged for moderation.

Last updated