API: Error codes and descriptions
Whenever a request to the API fails, a response detailing the exception is returned. The response includes an error code and a detailed description of the error.
The possible errors returned by the API are...
| Code | Description |
|---|---|
| couldnt_create_album | An error occurred while creating the album. |
| couldnt_create_user | We were unable to create a user with the given information. |
| couldnt_update_album | An error occurred while updating the album. |
| error_processing_upload | An error occured while processing the uploaded file. |
| invalid_album | The specified album is invalid. |
| invalid_album_token | The specified token for accessing this album is invalid. |
| invalid_input | Parameters are malformed. |
| invalid_photo_token | The specified token for accessing this photo is invalid. |
| invalid_signature | The given signature was invalid. See Authentication. |
| no_file | No file was included in the request. |
| no_such_album | No album with the given id. |
| no_such_photo | No photo/video with the given id. |
| no_such_tag | This tag isn't being used on the site. |
| no_such_user | No user with the given user id. |
| permission_denied | You don't have the necessary permissions to perform this action (required level: 'level'). See Permission Levels. |
| token_required | Anonymous access to this site's content requires a combination of either album_id/token or photo_id/token. |
| user_already_exists | The user with this information already exists. |




