2022-01-30 11:15:01 +13:00
< ? php
2022-01-30 11:20:34 +13:00
/**
* List of server wide error codes and their respective messages .
*/
2022-01-30 11:50:07 +13:00
use Appwrite\Extend\Exception ;
2022-01-30 11:15:01 +13:00
return [
2022-02-07 01:49:01 +13:00
/** General Errors */
2022-02-08 11:17:23 +13:00
Exception :: GENERAL_UNKNOWN => [
'name' => Exception :: GENERAL_UNKNOWN ,
2022-02-08 11:27:46 +13:00
'description' => 'An unknown error has occured. Please check the logs for more information.' ,
2022-02-07 10:46:47 +13:00
'code' => 500 ,
],
Exception :: GENERAL_ACCESS_FORBIDDEN => [
'name' => Exception :: GENERAL_ACCESS_FORBIDDEN ,
2022-02-08 11:27:46 +13:00
'description' => 'Access to this API is forbidden.' ,
'code' => 401 ,
2022-02-07 10:46:47 +13:00
],
2022-02-07 10:27:16 +13:00
Exception :: GENERAL_UNKNOWN_ORIGIN => [
'name' => Exception :: GENERAL_UNKNOWN_ORIGIN ,
2022-02-08 11:27:46 +13:00
'description' => 'The request originated from an unknown origin. If you trust this domain, please list it as a trusted platform in the Appwrite console.' ,
2022-02-07 09:55:45 +13:00
'code' => 403 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 10:27:16 +13:00
Exception :: GENERAL_SERVICE_DISABLED => [
'name' => Exception :: GENERAL_SERVICE_DISABLED ,
2022-01-31 11:44:47 +13:00
'description' => 'The requested service is disabled. You can enable/disable a service from the Appwrite console or by contacting the project owner.' ,
2022-02-07 09:55:45 +13:00
'code' => 503 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 10:27:16 +13:00
Exception :: GENERAL_UNAUTHORIZED_SCOPE => [
'name' => Exception :: GENERAL_UNAUTHORIZED_SCOPE ,
2022-02-07 01:49:01 +13:00
'description' => 'The current user or API key does not have the required scopes to access the requested resource.' ,
2022-02-07 09:55:45 +13:00
'code' => 401 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 10:27:16 +13:00
Exception :: GENERAL_RATE_LIMIT_EXCEEDED => [
'name' => Exception :: GENERAL_RATE_LIMIT_EXCEEDED ,
2022-02-07 01:49:01 +13:00
'description' => 'Rate limit for the current endpoint has been exceeded. Please try again after some time.' ,
2022-02-07 09:55:45 +13:00
'code' => 429 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 10:27:16 +13:00
Exception :: GENERAL_SMTP_DISABLED => [
'name' => Exception :: GENERAL_SMTP_DISABLED ,
2022-02-08 11:27:46 +13:00
'description' => 'SMTP is disabled on your Appwrite instance. Please contact the project owner.' ,
2022-02-07 09:55:45 +13:00
'code' => 503 ,
2022-02-07 06:27:13 +13:00
],
2022-02-08 11:08:05 +13:00
Exception :: GENERAL_ARGUMENT_INVALID => [
'name' => Exception :: GENERAL_ARGUMENT_INVALID ,
2022-02-08 11:27:46 +13:00
'description' => 'The request contains one or more invalid arguments. Please refer to the endpoint documentation.' ,
2022-02-08 11:08:05 +13:00
'code' => 400 ,
],
2022-02-07 10:46:47 +13:00
Exception :: GENERAL_SERVER_ERROR => [
'name' => Exception :: GENERAL_SERVER_ERROR ,
2022-02-08 11:27:46 +13:00
'description' => 'An internal server error occurred.' ,
2022-02-07 10:46:47 +13:00
'code' => 500 ,
],
2022-02-07 01:49:01 +13:00
/** User Errors */
Exception :: USER_COUNT_EXCEEDED => [
'name' => Exception :: USER_COUNT_EXCEEDED ,
'description' => 'The current project has exceeded the maximum number of users. Please check your user limit in the Appwrite console.' ,
2022-02-07 09:55:45 +13:00
'code' => 501 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 10:27:16 +13:00
Exception :: USER_JWT_INVALID => [
'name' => Exception :: USER_JWT_INVALID ,
'description' => 'The JWT token is invalid. Please check the value of the X-Appwrite-JWT header to ensure the correct token is being used.' ,
'code' => 401 ,
],
2022-02-08 11:10:49 +13:00
Exception :: USER_ALREADY_EXISTS => [
'name' => Exception :: USER_ALREADY_EXISTS ,
'description' => 'A user with the same email ID already exists in your project.' ,
'code' => 409 ,
],
Exception :: USER_BLOCKED => [
'name' => Exception :: USER_BLOCKED ,
2022-02-08 11:39:53 +13:00
'description' => 'The current user has been blocked. Please contact the project owner for more information.' ,
2022-02-08 11:10:49 +13:00
'code' => 401 ,
],
Exception :: USER_INVALID_TOKEN => [
'name' => Exception :: USER_INVALID_TOKEN ,
2022-02-08 11:39:53 +13:00
'description' => 'Invalid token passed in the request.' ,
2022-02-08 11:10:49 +13:00
'code' => 401 ,
],
2022-02-07 01:49:01 +13:00
Exception :: USER_PASSWORD_RESET_REQUIRED => [
'name' => Exception :: USER_PASSWORD_RESET_REQUIRED ,
'description' => 'The current user requires a password reset.' ,
2022-02-07 09:55:45 +13:00
'code' => 412 ,
2022-01-30 11:15:01 +13:00
],
2022-02-08 11:10:49 +13:00
Exception :: USER_EMAIL_NOT_WHITELISTED => [
'name' => Exception :: USER_EMAIL_NOT_WHITELISTED ,
'description' => 'The user\'s email is not part of the whitelist. Please check the _APP_CONSOLE_WHITELIST_EMAILS environment variable of your Appwrite server.' ,
'code' => 401 ,
],
2022-02-07 01:49:01 +13:00
Exception :: USER_IP_NOT_WHITELISTED => [
'name' => Exception :: USER_IP_NOT_WHITELISTED ,
'description' => 'The user\'s IP address is not part of the whitelist. Please check the _APP_CONSOLE_WHITELIST_IPS environment variable of your Appwrite server.' ,
2022-02-07 09:55:45 +13:00
'code' => 401 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 01:49:01 +13:00
Exception :: USER_INVALID_CREDENTIALS => [
'name' => Exception :: USER_INVALID_CREDENTIALS ,
'description' => 'Invalid credentials. Please check the email and password.' ,
2022-02-07 09:55:45 +13:00
'code' => 401 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 02:54:40 +13:00
Exception :: USER_ANONYMOUS_CONSOLE_PROHIBITED => [
'name' => Exception :: USER_ANONYMOUS_CONSOLE_PROHIBITED ,
2022-02-08 11:39:53 +13:00
'description' => 'Anonymous users cannot be created for the console project.' ,
2022-02-07 09:55:45 +13:00
'code' => 401 ,
2022-02-07 02:54:40 +13:00
],
Exception :: USER_SESSION_ALREADY_EXISTS => [
'name' => Exception :: USER_SESSION_ALREADY_EXISTS ,
2022-02-08 11:39:53 +13:00
'description' => 'Creation of anonymous users is prohibited when a session is active.' ,
2022-02-07 09:55:45 +13:00
'code' => 401 ,
2022-02-07 02:54:40 +13:00
],
2022-02-07 01:49:01 +13:00
Exception :: USER_NOT_FOUND => [
'name' => Exception :: USER_NOT_FOUND ,
2022-01-31 11:44:47 +13:00
'description' => 'User with the requested ID could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 01:49:01 +13:00
Exception :: USER_EMAIL_ALREADY_EXISTS => [
'name' => Exception :: USER_EMAIL_ALREADY_EXISTS ,
2022-01-31 11:44:47 +13:00
'description' => 'Another user with the same email already exists in the current project.' ,
2022-02-07 09:55:45 +13:00
'code' => 409 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 01:49:01 +13:00
Exception :: USER_PASSWORD_MISMATCH => [
'name' => Exception :: USER_PASSWORD_MISMATCH ,
2022-02-08 11:39:53 +13:00
'description' => 'Passwords do not match. Please check the password and confirm password.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 02:59:45 +13:00
Exception :: USER_SESSION_NOT_FOUND => [
'name' => Exception :: USER_SESSION_NOT_FOUND ,
'description' => 'The current user session could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 02:59:45 +13:00
],
2022-02-07 04:17:19 +13:00
Exception :: USER_UNAUTHORIZED => [
'name' => Exception :: USER_UNAUTHORIZED ,
'description' => 'The current user is not authorized to perform the requested action.' ,
2022-02-07 09:55:45 +13:00
'code' => 401 ,
2022-02-07 04:17:19 +13:00
],
2022-02-07 01:49:01 +13:00
Exception :: USER_AUTH_METHOD_UNSUPPORTED => [
'name' => Exception :: USER_AUTH_METHOD_UNSUPPORTED ,
2022-02-08 11:39:53 +13:00
'description' => 'The requested authentication method is either disabled or unsupported. Please check the supported authentication methods in the Appwrite console.' ,
2022-02-07 09:55:45 +13:00
'code' => 501 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 01:49:01 +13:00
/** OAuth Errors */
Exception :: OAUTH_PROVIDER_DISABLED => [
'name' => Exception :: OAUTH_PROVIDER_DISABLED ,
2022-01-31 11:44:47 +13:00
'description' => 'The chosen OAuth provider is disabled. Please contact your project administrator for more information.' ,
2022-02-07 09:55:45 +13:00
'code' => 412 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 01:49:01 +13:00
Exception :: OAUTH_PROVIDER_UNSUPPORTED => [
'name' => Exception :: OAUTH_PROVIDER_UNSUPPORTED ,
2022-02-08 11:44:02 +13:00
'description' => 'The chosen OAuth provider is unsupported. Please check <a href="/docs/client/account?sdk=web-default#accountCreateOAuth2Session"> the docs</a> for the complete list of supported OAuth providers.' ,
2022-02-07 09:55:45 +13:00
'code' => 501 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 01:49:01 +13:00
Exception :: OAUTH_INVALID_SUCCESS_URL => [
'name' => Exception :: OAUTH_INVALID_SUCCESS_URL ,
2022-01-31 11:44:47 +13:00
'description' => 'Invalid URL received for OAuth success redirect.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 01:49:01 +13:00
Exception :: OAUTH_INVALID_FAILURE_URL => [
'name' => Exception :: OAUTH_INVALID_FAILURE_URL ,
2022-01-31 11:44:47 +13:00
'description' => 'Invalid URL received for OAuth failure redirect.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-01-30 11:15:01 +13:00
],
2022-02-07 01:49:01 +13:00
Exception :: OAUTH_MISSING_USER_ID => [
'name' => Exception :: OAUTH_MISSING_USER_ID ,
2022-02-08 11:48:05 +13:00
'description' => 'Failed to obtain user ID from the OAuth provider.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 03:10:12 +13:00
],
2022-02-07 03:52:21 +13:00
/** Teams */
Exception :: TEAM_NOT_FOUND => [
'name' => Exception :: TEAM_NOT_FOUND ,
'description' => 'Team with the requested ID could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 03:52:21 +13:00
],
2022-02-07 04:38:15 +13:00
Exception :: TEAM_INVITE_ALREADY_EXISTS => [
'name' => Exception :: TEAM_INVITE_ALREADY_EXISTS ,
2022-02-08 11:48:05 +13:00
'description' => 'The current user has already received an invitation to join the team.' ,
2022-02-07 09:55:45 +13:00
'code' => 409 ,
2022-02-07 04:17:19 +13:00
],
Exception :: TEAM_INVITE_NOT_FOUND => [
'name' => Exception :: TEAM_INVITE_NOT_FOUND ,
2022-02-08 11:48:05 +13:00
'description' => 'The requested team invitation could not be found.' ,
'code' => 404 ,
2022-02-07 04:17:19 +13:00
],
2022-02-07 04:38:15 +13:00
Exception :: TEAM_INVALID_SECRET => [
'name' => Exception :: TEAM_INVALID_SECRET ,
'description' => 'The team invitation secret is invalid.' ,
2022-02-07 09:55:45 +13:00
'code' => 401 ,
2022-02-07 04:38:15 +13:00
],
Exception :: TEAM_MEMBERSHIP_MISMATCH => [
'name' => Exception :: TEAM_MEMBERSHIP_MISMATCH ,
'description' => 'The membership ID does not belong to the team ID.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 04:38:15 +13:00
],
2022-02-07 04:57:15 +13:00
Exception :: TEAM_INVITE_MISMATCH => [
'name' => Exception :: TEAM_INVITE_MISMATCH ,
'description' => 'The invite does not belong to the current user.' ,
2022-02-07 09:55:45 +13:00
'code' => 401 ,
2022-02-07 04:57:15 +13:00
],
2022-02-07 04:17:19 +13:00
2022-02-07 03:52:21 +13:00
/** Membership */
Exception :: MEMBERSHIP_NOT_FOUND => [
'name' => Exception :: MEMBERSHIP_NOT_FOUND ,
'description' => 'Membership with the requested ID could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 03:52:21 +13:00
],
2022-02-07 03:10:12 +13:00
/** Avatars */
2022-02-07 03:13:16 +13:00
Exception :: AVATAR_SET_NOT_FOUND => [
'name' => Exception :: AVATAR_SET_NOT_FOUND ,
'description' => 'The requested avatar set could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404
2022-02-07 03:13:16 +13:00
],
Exception :: AVATAR_NOT_FOUND => [
'name' => Exception :: AVATAR_NOT_FOUND ,
'description' => 'The request avatar could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 03:13:16 +13:00
],
2022-02-07 03:16:14 +13:00
Exception :: AVATAR_IMAGE_NOT_FOUND => [
'name' => Exception :: AVATAR_IMAGE_NOT_FOUND ,
2022-02-08 11:58:20 +13:00
'description' => 'The requested image was not found at the URL.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 03:16:14 +13:00
],
2022-02-07 03:19:10 +13:00
Exception :: AVATAR_REMOTE_URL_FAILED => [
'name' => Exception :: AVATAR_REMOTE_URL_FAILED ,
2022-02-08 11:58:20 +13:00
'description' => 'Failed to fetch favicon from the requested URL.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 03:19:10 +13:00
],
2022-02-07 03:21:03 +13:00
Exception :: AVATAR_ICON_NOT_FOUND => [
'name' => Exception :: AVATAR_ICON_NOT_FOUND ,
'description' => 'The requested favicon could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 03:21:03 +13:00
],
2022-02-07 03:10:12 +13:00
2022-02-07 03:32:28 +13:00
/** Storage */
Exception :: STORAGE_FILE_NOT_FOUND => [
'name' => Exception :: STORAGE_FILE_NOT_FOUND ,
2022-02-07 03:13:16 +13:00
'description' => 'The requested file could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 03:13:16 +13:00
],
2022-02-07 03:44:48 +13:00
Exception :: STORAGE_DEVICE_NOT_FOUND => [
'name' => Exception :: STORAGE_DEVICE_NOT_FOUND ,
'description' => 'The requested storage device could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 03:44:48 +13:00
],
2022-02-07 05:12:15 +13:00
Exception :: STORAGE_FILE_EMPTY => [
'name' => Exception :: STORAGE_FILE_EMPTY ,
'description' => 'Empty file passed to the endpoint.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:12:15 +13:00
],
Exception :: STORAGE_FILE_TYPE_UNSUPPORTED => [
'name' => Exception :: STORAGE_FILE_TYPE_UNSUPPORTED ,
'description' => 'The file type is not supported.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:12:15 +13:00
],
2022-02-07 03:32:28 +13:00
Exception :: STORAGE_INVALID_FILE_SIZE => [
'name' => Exception :: STORAGE_INVALID_FILE_SIZE ,
2022-02-08 12:01:28 +13:00
'description' => 'The file size is either not valid or exceeds the maximum allowed size. Please check the file or the value of the _APP_STORAGE_LIMIT environment variable.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 03:32:28 +13:00
],
2022-02-07 03:35:17 +13:00
Exception :: STORAGE_INVALID_FILE => [
'name' => Exception :: STORAGE_INVALID_FILE ,
'description' => 'The uploaded file is invalid. Please check the file and try again.' ,
2022-02-07 09:55:45 +13:00
'code' => 403 ,
2022-02-07 03:35:17 +13:00
],
2022-02-07 05:12:15 +13:00
/** Functions */
Exception :: FUNCTION_NOT_FOUND => [
'name' => Exception :: FUNCTION_NOT_FOUND ,
2022-02-08 12:04:06 +13:00
'description' => 'Function with the requested ID could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 05:12:15 +13:00
],
/** Deployments */
Exception :: DEPLOYMENT_NOT_FOUND => [
'name' => Exception :: DEPLOYMENT_NOT_FOUND ,
2022-02-08 12:04:06 +13:00
'description' => 'Deployment with the requested ID could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 05:12:15 +13:00
],
/** Executions */
Exception :: EXECUTION_NOT_FOUND => [
'name' => Exception :: EXECUTION_NOT_FOUND ,
2022-02-08 12:04:06 +13:00
'description' => 'Execution with the requested ID could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 05:12:15 +13:00
],
2022-02-07 05:56:30 +13:00
/** Collections */
Exception :: COLLECTION_NOT_FOUND => [
'name' => Exception :: COLLECTION_NOT_FOUND ,
2022-02-08 12:17:52 +13:00
'description' => 'Collection with the requested ID could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 05:56:30 +13:00
],
Exception :: COLLECTION_ALREADY_EXISTS => [
'name' => Exception :: COLLECTION_ALREADY_EXISTS ,
2022-02-08 12:17:52 +13:00
'description' => 'A collection with the requested ID already exists.' ,
'code' => 409 ,
2022-02-07 05:56:30 +13:00
],
Exception :: COLLECTION_LIMIT_EXCEEDED => [
'name' => Exception :: COLLECTION_LIMIT_EXCEEDED ,
'description' => 'The maximum number of collections has been reached.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
/** Documents */
Exception :: DOCUMENT_NOT_FOUND => [
'name' => Exception :: DOCUMENT_NOT_FOUND ,
2022-02-08 12:17:52 +13:00
'description' => 'Document with the requested ID could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 05:56:30 +13:00
],
Exception :: DOCUMENT_INVALID_STRUCTURE => [
'name' => Exception :: DOCUMENT_INVALID_STRUCTURE ,
2022-02-08 12:17:52 +13:00
'description' => 'The document structure is invalid. Please ensure the attributes match the collection definition.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
Exception :: DOCUMENT_MISSING_PAYLOAD => [
'name' => Exception :: DOCUMENT_MISSING_PAYLOAD ,
'description' => 'The document payload is missing.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
Exception :: DOCUMENT_ALREADY_EXISTS => [
'name' => Exception :: DOCUMENT_ALREADY_EXISTS ,
2022-02-08 12:17:52 +13:00
'description' => 'Document with the requested ID already exists.' ,
'code' => 409 ,
2022-02-07 05:56:30 +13:00
],
/** Attributes */
Exception :: ATTRIBUTE_NOT_FOUND => [
'name' => Exception :: ATTRIBUTE_NOT_FOUND ,
2022-02-08 12:17:52 +13:00
'description' => 'Attribute with the requested ID could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 05:56:30 +13:00
],
Exception :: ATTRIBUTE_UNKNOWN => [
'name' => Exception :: ATTRIBUTE_UNKNOWN ,
2022-02-08 12:17:52 +13:00
'description' => 'The attribute required for the index could not be found. Please confirm all your attributes are in the <span class="tag">available</span> state.' ,
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
Exception :: ATTRIBUTE_NOT_AVAILABLE => [
'name' => Exception :: ATTRIBUTE_NOT_AVAILABLE ,
2022-02-08 12:17:52 +13:00
'description' => 'The requested attribute is not yet <span class="tag">available</span>. Please try again later.' ,
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
Exception :: ATTRIBUTE_FORMAT_UNSUPPORTED => [
'name' => Exception :: ATTRIBUTE_FORMAT_UNSUPPORTED ,
'description' => 'The requested attribute format is not supported.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
Exception :: ATTRIBUTE_DEFAULT_UNSUPPORTED => [
'name' => Exception :: ATTRIBUTE_DEFAULT_UNSUPPORTED ,
2022-02-08 12:17:52 +13:00
'description' => 'Default values cannot be set for <span class="tag">array</span> and <span class="tag">required</span> attributes.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
Exception :: ATTRIBUTE_ALREADY_EXISTS => [
'name' => Exception :: ATTRIBUTE_ALREADY_EXISTS ,
2022-02-08 12:17:52 +13:00
'description' => 'Attribute with the requested ID already exists.' ,
'code' => 409 ,
2022-02-07 05:56:30 +13:00
],
Exception :: ATTRIBUTE_LIMIT_EXCEEDED => [
'name' => Exception :: ATTRIBUTE_LIMIT_EXCEEDED ,
'description' => 'The maximum number of attributes has been reached.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
Exception :: ATTRIBUTE_VALUE_INVALID => [
'name' => Exception :: ATTRIBUTE_VALUE_INVALID ,
2022-02-08 12:17:52 +13:00
'description' => 'The attribute value is invalid. Please check the type, range and value of the attribute.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
/** Indexes */
Exception :: INDEX_NOT_FOUND => [
'name' => Exception :: INDEX_NOT_FOUND ,
2022-02-08 12:17:52 +13:00
'description' => 'Index with the requested could not be found.' ,
2022-02-07 09:55:45 +13:00
'code' => 404 ,
2022-02-07 05:56:30 +13:00
],
Exception :: INDEX_LIMIT_EXCEEDED => [
'name' => Exception :: INDEX_LIMIT_EXCEEDED ,
'description' => 'The maximum number of indexes has been reached.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
Exception :: INDEX_ALREADY_EXISTS => [
'name' => Exception :: INDEX_ALREADY_EXISTS ,
2022-02-08 12:17:52 +13:00
'description' => 'Index with the requested ID already exists.' ,
'code' => 409 ,
2022-02-07 05:56:30 +13:00
],
/** Query */
Exception :: QUERY_LIMIT_EXCEEDED => [
'name' => Exception :: QUERY_LIMIT_EXCEEDED ,
2022-02-08 12:17:52 +13:00
'description' => 'Query limit exceeded for the current attribute. Usage of more than 100 query values on a single attribute is prohibited.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
Exception :: QUERY_INVALID => [
'name' => Exception :: QUERY_INVALID ,
2022-02-08 12:17:52 +13:00
'description' => 'Your query syntax is invalid. Please check your query and try again.' ,
2022-02-07 09:55:45 +13:00
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
2022-02-08 10:10:36 +13:00
/** Project Errors */
Exception :: PROJECT_NOT_FOUND => [
'name' => Exception :: PROJECT_NOT_FOUND ,
'description' => 'The requested project could not be found. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used.' ,
'code' => 404 ,
],
Exception :: PROJECT_UNKNOWN => [
'name' => Exception :: PROJECT_UNKNOWN ,
'description' => 'The project ID is either missing or not valid. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used.' ,
'code' => 400 ,
],
Exception :: WEBHOOK_NOT_FOUND => [
'name' => Exception :: WEBHOOK_NOT_FOUND ,
'description' => 'The requested webhook could not be found.' ,
'code' => 404 ,
],
Exception :: KEY_NOT_FOUND => [
'name' => Exception :: KEY_NOT_FOUND ,
'description' => 'The requested key could not be found.' ,
'code' => 404 ,
],
Exception :: PLATFORM_NOT_FOUND => [
'name' => Exception :: PLATFORM_NOT_FOUND ,
'description' => 'The requested platform could not be found.' ,
'code' => 404 ,
],
Exception :: DOMAIN_NOT_FOUND => [
'name' => Exception :: DOMAIN_NOT_FOUND ,
'description' => 'The requested domain could not be found.' ,
'code' => 404 ,
],
Exception :: DOMAIN_ALREADY_EXISTS => [
'name' => Exception :: DOMAIN_ALREADY_EXISTS ,
'description' => 'The requested domain already exists.' ,
'code' => 409 ,
],
Exception :: DOMAIN_UNREACHABLE => [
'name' => Exception :: DOMAIN_UNREACHABLE ,
'description' => 'The requested domain is not reachable.' ,
'code' => 503 ,
],
Exception :: DOMAIN_VERIFICATION_FAILED => [
'name' => Exception :: DOMAIN_VERIFICATION_FAILED ,
'description' => 'The requested domain verification failed.' ,
'code' => 503 ,
]
2022-01-30 11:15:01 +13:00
];