Error Reponse Format
From EveryTrail API Developer Documentation
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:
| Message | Code |
|---|---|
| User name is required | 1 |
| Password is too short | 2 |
| Password and confirm password must be the same | 3 |
| A valid e-mail address is required | 4 |
| Invalid date of birth | 5 |
| The user name you specified is not available | 6 |
| The email address you specified is already in use | 7 |
| A valid username is required. A username can only consist of letters, numbers, -, and _. | 8 |
| Invalid verification code supplied | 9 |
| An unknown error occured | 10 |
| Invalid Username or Password | 11 |
| Invalid Api Key for Partner | 12 |
| Missing or Invalid Input | 13 |
| Photo upload error | 14 |
| Could not retrieve user with User ID | 15 |
| The username must be between 2 and and 15 characters | 16 |
| Trip needs a title | 101 |
| User ID required to create a trip | 102 |
| No Track Data found | 103 |
| No Photo Data found | 104 |
| Invalid Trip Id | 105 |
| Trip Photo Upload Failed | 106 |
| The Comment cannot be empty | 107 |
| This trip does not belong to you | 108 |
| This trip is private | 109 |
