Handling Errors Part 1

ERROR_CODE HTTP response code Title
DUPLICATE_API_REQUEST HttpStatus.BAD_REQUEST Duplicate API request.
API_DISABLED_FOR_USER HttpStatus.UNAUTHORIZED API disabled for user (NOTE: One meaning of this message is that the account lacks a required setting. For example, the account is not enabled for EMD when using the Get All Email Campaigns API.)
INSUFFICIENT_ACCESS HttpStatus.UNAUTHORIZED Insufficient access.
INVALID_USER_NAME_PASSWORD HttpStatus.BAD_REQUEST Invalid username or password.
INVALID_NUMBER HttpStatus.BAD_REQUEST Invalid number.
INVALID_DATE HttpStatus.BAD_REQUEST Invalid date.
INVALID_PARAMETER HttpStatus.BAD_REQUEST Invalid Request JSON Body.
INVALID_FIELD_NAME HttpStatus.BAD_REQUEST Invalid field name.
INVALID_FIELD_TYPE HttpStatus.BAD_REQUEST Invalid field type.
INVALID_OBJECT HttpStatus.BAD_REQUEST Invalid object.
PASSWORD_LOCKOUT HttpStatus.UNAUTHORIZED Password locked.
PASSWORD_EXPIRED HttpStatus.UNAUTHORIZED Password expired.
API_LIMIT_EXCEEDED HttpStatus.BAD_REQUEST Request limit exceeded.
API_BLOCKED HttpStatus.BAD_REQUEST The <function_name> is currently not available to this user.
CAMPAIGN_NOT_FOUND HttpStatus.NOT_FOUND Campaign not found.
CAMPAIGN_ALREADY_EXISTS HttpStatus.BAD_REQUEST Campaign already exists.
RECIPIENT_LIMIT_EXCEEDED HttpStatus.BAD_REQUEST Recipient limit exceeded.
MAX_ATTACHMENT_SIZE_EXCEEDED HttpStatus.BAD_REQUEST Attachment size exceeded.
CAMPAIGN_NOT_LISTENING HttpStatus.BAD_REQUEST Campaign not listening.
CAMPAIGN_IS_INVALID HttpStatus.BAD_REQUEST Not a valid campaign.
MOBILE_CAMPAIGN_DISABLED_FOR_USER HttpStatus.BAD_REQUEST Campaign disabled for user.
FOLDER_NOT_FOUND HttpStatus.NOT_FOUND Folder not found.
FOLDER_ALREADY_EXISTS HttpStatus.BAD_REQUEST Folder already exists.
NO_CAMPAIGNS_IN_THIS_FOLDER HttpStatus.BAD_REQUEST No campaigns for this folder.
NO_OBJECTS_IN_THIS_FOLDER HttpStatus.BAD_REQUEST No objects in this folder.
LIST_NOT_FOUND HttpStatus.NOT_FOUND List not found.
LIST_ALREADY_EXISTS HttpStatus.BAD_REQUEST List already exists.
TABLE_NOT_FOUND HttpStatus.NOT_FOUND Table not found.
CUSTOM_EVENT_NOT_FOUND HttpStatus.NOT_FOUND Custom event not found.
RECORD_LIMIT_EXCEEDED HttpStatus.BAD_REQUEST Record limit exceeded.
RECORD_NOT_FOUND HttpStatus.NOT_FOUND Record not found.
OBJECT_NOT_FOUND HttpStatus.NOT_FOUND Object not found.
OBJECT_ALREADY_EXISTS HttpStatus.BAD_REQUEST Object already exists.
OPERATION_NOT_SUPPORTED HttpStatus.FORBIDDEN Operation not supported.
MULTIPLE_OBJECTS_FOUND HttpStatus.BAD_REQUEST Multiple objects found.
DOCUMENT_NOT_FOUND HttpStatus.NOT_FOUND Document not found.
DOCUMENT_ALREADY_EXISTS HttpStatus.BAD_REQUEST Document already exists.
IMAGES_NOT_FOUND HttpStatus.NOT_FOUND Images not found.
UNEXPECTED_EXCEPTION HttpStatus.INTERNAL_SERVER_ERROR Unexpected exception.
UNRECOVERABLE_EXCEPTION HttpStatus.INTERNAL_SERVER_ERROR Unrecoverable exception.
INVALID_AUTHENTICATION_OPTION HttpStatus.BAD_REQUEST Invalid authentication option.
AUTHENTICATION_FAILED HttpStatus.UNAUTHORIZED Authentication failed.