Error Reponse Format

From EveryTrail API Developer Documentation

Jump to: navigation, search

Format

The following format describes the format used in API responses to indicate errors:

<errors>
 
  {1..*}
  <error>
    <code>${error code}</code>
    <message>${error message}</message>
  </error>
 
</errors>

The <error> element may be repeated 1 or more times to indicate multiple errors.

${error code}: integer code of the error

${error message}: message describing the error

Codes

Here is an enumeration of all the error codes with their messages:

MessageCode
User name is required1
Password is too short2
Password and confirm password must be the same3
A valid e-mail address is required4
Invalid date of birth5
The user name you specified is not available6
The email address you specified is already in use7
A valid username is required. A username can only consist of letters, numbers, -, and _.8
Invalid verification code supplied9
An unknown error occured10
Invalid Username or Password11
Invalid Api Key for Partner12
Missing or Invalid Input13
Photo upload error14
Could not retrieve user with User ID15
The username must be between 2 and and 15 characters16
Trip needs a title101
User ID required to create a trip102
No Track Data found103
No Photo Data found104
Invalid Trip Id105
Trip Photo Upload Failed106
The Comment cannot be empty107
This trip does not belong to you108
This trip is private109
Personal tools