2022-01-30 11:15:01 +13:00
< ? php
2022-01-30 11:20:34 +13:00
/**
2022-05-24 02:54:50 +12:00
* List of server wide error codes and their respective messages .
2022-01-30 11:20:34 +13:00
*/
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-05-24 02:54:50 +12:00
'code' => 500 ,
2022-02-07 10:46:47 +13:00
],
2022-02-17 04:28:37 +13:00
Exception :: GENERAL_MOCK => [
'name' => Exception :: GENERAL_MOCK ,
'description' => 'General errors thrown by the mock controller used for testing.' ,
2022-05-24 02:54:50 +12:00
'code' => 400 ,
2022-02-17 04:28:37 +13:00
],
2022-02-07 10:46:47 +13:00
Exception :: GENERAL_ACCESS_FORBIDDEN => [
'name' => Exception :: GENERAL_ACCESS_FORBIDDEN ,
2022-02-08 11:27:46 +13:00
'description' => 'Access to this API is forbidden.' ,
2022-05-24 02:54:50 +12:00
'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-02-13 21:37:14 +13:00
'description' => 'The requested service is disabled. You can enable the service from the Appwrite console.' ,
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-13 21:37:14 +13:00
'description' => 'SMTP is disabled on your Appwrite instance. You can <a href="/docs/email-delivery">learn more about setting up SMTP</a> in our docs.' ,
2022-02-07 09:55:45 +13:00
'code' => 503 ,
2022-02-07 06:27:13 +13:00
],
2022-06-24 22:49:00 +12:00
Exception :: GENERAL_PHONE_DISABLED => [
'name' => Exception :: GENERAL_PHONE_DISABLED ,
2022-08-15 01:43:41 +12:00
'description' => 'Phone provider is not configured. Please check the _APP_SMS_PROVIDER environment variable of your Appwrite server.' ,
2022-06-24 22:49:00 +12:00
'code' => 503 ,
],
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-09 10:34:26 +13:00
Exception :: GENERAL_QUERY_LIMIT_EXCEEDED => [
'name' => Exception :: GENERAL_QUERY_LIMIT_EXCEEDED ,
'description' => 'Query limit exceeded for the current attribute. Usage of more than 100 query values on a single attribute is prohibited.' ,
'code' => 400 ,
],
Exception :: GENERAL_QUERY_INVALID => [
'name' => Exception :: GENERAL_QUERY_INVALID ,
'description' => 'The query\'s syntax is invalid. Please check the query and try again.' ,
'code' => 400 ,
],
2022-02-13 22:12:16 +13:00
Exception :: GENERAL_ROUTE_NOT_FOUND => [
'name' => Exception :: GENERAL_ROUTE_NOT_FOUND ,
2022-11-22 04:37:34 +13:00
'description' => 'The requested route was not found. Please refer to the API docs and try again.' ,
2022-02-13 22:12:16 +13:00
'code' => 404 ,
],
2022-02-09 11:56:11 +13:00
Exception :: GENERAL_CURSOR_NOT_FOUND => [
'name' => Exception :: GENERAL_CURSOR_NOT_FOUND ,
'description' => 'The cursor is invalid. This can happen if the item represented by the cursor has been deleted.' ,
'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-04-25 21:12:43 +12:00
Exception :: GENERAL_PROTOCOL_UNSUPPORTED => [
'name' => Exception :: GENERAL_PROTOCOL_UNSUPPORTED ,
'description' => 'The request cannot be fulfilled with the current protocol. Please check the value of the _APP_OPTIONS_FORCE_HTTPS environment variable.' ,
2023-10-25 23:25:46 +13:00
'code' => 426 ,
2022-03-22 03:23:56 +13:00
],
2023-01-20 00:56:41 +13:00
Exception :: GENERAL_CODES_DISABLED => [
'name' => Exception :: GENERAL_CODES_DISABLED ,
'description' => 'Invitation codes are disabled on this server. Please contact the server administrator.' ,
'code' => 500 ,
],
2023-03-19 05:33:15 +13:00
Exception :: GENERAL_USAGE_DISABLED => [
'name' => Exception :: GENERAL_USAGE_DISABLED ,
'description' => 'Usage stats is not configured. Please check the value of the _APP_USAGE_STATS environment variable of your Appwrite server.' ,
'code' => 501 ,
],
2023-08-26 03:13:25 +12:00
Exception :: GENERAL_NOT_IMPLEMENTED => [
'name' => Exception :: GENERAL_NOT_IMPLEMENTED ,
'description' => 'This method was not fully implemented yet. If you believe this is a mistake, please upgrade your Appwrite server version.' ,
'code' => 405 ,
],
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 ,
2023-08-23 08:30:00 +12:00
'description' => 'A user with the same id, email, or phone already exists in this project.' ,
2022-02-08 11:10:49 +13:00
'code' => 409 ,
],
Exception :: USER_BLOCKED => [
'name' => Exception :: USER_BLOCKED ,
2023-08-23 20:29:01 +12:00
'description' => 'The current user has been blocked. You can unblock the user by making a request to the User API\'s "Update User Status" endpoint or in the Appwrite Console\'s Auth section.' ,
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 ,
2022-07-27 02:24:32 +12:00
'description' => 'Console registration is restricted to specific emails. Contact your administrator for more information.' ,
2022-02-08 11:10:49 +13:00
'code' => 401 ,
],
2023-01-20 00:56:41 +13:00
Exception :: USER_INVALID_CODE => [
'name' => Exception :: USER_INVALID_CODE ,
2023-01-11 03:48:45 +13:00
'description' => 'The specified code is not valid. Contact your administrator for more information.' ,
'code' => 401 ,
],
2022-02-07 01:49:01 +13:00
Exception :: USER_IP_NOT_WHITELISTED => [
'name' => Exception :: USER_IP_NOT_WHITELISTED ,
2022-07-27 02:24:32 +12:00
'description' => 'Console registration is restricted to specific IPs. Contact your administrator for more information.' ,
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-08-14 03:15:19 +12:00
'description' => 'A 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
],
2023-04-14 08:20:03 +12:00
Exception :: USER_PASSWORD_RECENTLY_USED => [
'name' => Exception :: USER_PASSWORD_RECENTLY_USED ,
2023-08-22 16:15:15 +12:00
'description' => 'The password you are trying to use is similar to your previous password. For your security, please choose a different password and try again.' ,
2023-04-14 08:20:03 +12:00
'code' => 400 ,
],
Exception :: USER_PASSWORD_PERSONAL_DATA => [
'name' => Exception :: USER_PASSWORD_PERSONAL_DATA ,
2023-08-22 16:15:15 +12:00
'description' => 'The password you are trying to use contains references to your name, email, phone or userID. For your security, please choose a different password and try again.' ,
2023-04-14 08:20:03 +12:00
'code' => 400 ,
],
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
],
2023-05-18 13:11:45 +12:00
Exception :: USER_IDENTITY_NOT_FOUND => [
'name' => Exception :: USER_IDENTITY_NOT_FOUND ,
2023-08-23 20:29:01 +12:00
'description' => 'The identity could not be found. Please sign in with OAuth provider to create identity first.' ,
2023-05-18 13:11:45 +12:00
'code' => 404 ,
],
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-06-24 22:49:00 +12:00
Exception :: USER_PHONE_ALREADY_EXISTS => [
'name' => Exception :: USER_PHONE_ALREADY_EXISTS ,
'description' => 'A user with the same phone number already exists in the current project.' ,
'code' => 409 ,
],
Exception :: USER_PHONE_NOT_FOUND => [
'name' => Exception :: USER_PHONE_NOT_FOUND ,
'description' => 'The current user does not have a phone number associated with their account.' ,
'code' => 400 ,
],
2022-08-14 02:44:04 +12:00
Exception :: USER_MISSING_ID => [
'name' => Exception :: USER_MISSING_ID ,
2022-08-14 03:15:19 +12:00
'description' => 'Missing ID from OAuth2 provider.' ,
2022-08-14 02:44:04 +12:00
'code' => 400 ,
],
2023-07-15 12:23:17 +12:00
Exception :: USER_OAUTH2_BAD_REQUEST => [
'name' => Exception :: USER_OAUTH2_BAD_REQUEST ,
'description' => 'OAuth2 provider rejected the bad request.' ,
'code' => 400 ,
],
Exception :: USER_OAUTH2_UNAUTHORIZED => [
'name' => Exception :: USER_OAUTH2_UNAUTHORIZED ,
'description' => 'OAuth2 provider rejected the unauthorized request.' ,
'code' => 401 ,
],
Exception :: USER_OAUTH2_PROVIDER_ERROR => [
'name' => Exception :: USER_OAUTH2_PROVIDER_ERROR ,
'description' => 'OAuth2 provider returned some error.' ,
'code' => 424 ,
],
2023-09-23 05:23:41 +12:00
Exception :: USER_EMAIL_ALREADY_VERIFIED => [
'name' => Exception :: USER_EMAIL_ALREADY_VERIFIED ,
'description' => 'User email is already verified' ,
2023-09-23 05:26:07 +12:00
'code' => 409 ,
2023-09-23 05:23:41 +12:00
],
Exception :: USER_PHONE_ALREADY_VERIFIED => [
'name' => Exception :: USER_PHONE_ALREADY_VERIFIED ,
'description' => 'User phone is already verified' ,
2023-09-23 05:26:07 +12:00
'code' => 409
2023-07-15 12:23:17 +12:00
],
2022-02-07 01:49:01 +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-07-27 02:24:32 +12:00
'description' => 'User has already been invited or is already a member of this 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 ,
2023-08-23 20:29:01 +12:00
'description' => 'The team invitation secret is invalid. Please request a new invitation and try again.' ,
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
],
2023-07-13 07:03:38 +12:00
Exception :: TEAM_ALREADY_EXISTS => [
'name' => Exception :: TEAM_ALREADY_EXISTS ,
2023-08-22 16:15:15 +12:00
'description' => 'Team with requested ID already exists. Please choose a different ID and try again.' ,
2023-07-09 23:20:09 +12:00
'code' => 409 ,
],
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-07-27 02:24:32 +12:00
Exception :: MEMBERSHIP_ALREADY_CONFIRMED => [
'name' => Exception :: MEMBERSHIP_ALREADY_CONFIRMED ,
2023-08-23 20:29:01 +12:00
'description' => 'Membership is already confirmed.' ,
2022-07-27 02:24:32 +12:00
'code' => 409 ,
],
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 */
2023-08-23 05:11:32 +12:00
Exception :: STORAGE_FILE_ALREADY_EXISTS => [
'name' => Exception :: STORAGE_FILE_ALREADY_EXISTS ,
'description' => 'A storage file with the requested ID already exists.' ,
'code' => 409 ,
],
2022-02-07 03:32:28 +13:00
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 ,
2022-08-14 18:56:12 +12:00
'description' => 'The given file extension 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-17 11:55:54 +13:00
Exception :: STORAGE_INVALID_FILE => [
'name' => Exception :: STORAGE_INVALID_FILE ,
'description' => 'The uploaded file is invalid. Please check the file and try again.' ,
'code' => 403 ,
],
Exception :: STORAGE_BUCKET_ALREADY_EXISTS => [
'name' => Exception :: STORAGE_BUCKET_ALREADY_EXISTS ,
2023-10-05 02:52:19 +13:00
'description' => 'A storage bucket with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID.' ,
2022-02-17 11:55:54 +13:00
'code' => 409 ,
],
Exception :: STORAGE_BUCKET_NOT_FOUND => [
'name' => Exception :: STORAGE_BUCKET_NOT_FOUND ,
'description' => 'Storage bucket with the requested ID could not be found.' ,
'code' => 404 ,
],
2022-02-17 11:25:29 +13:00
Exception :: STORAGE_INVALID_CONTENT_RANGE => [
'name' => Exception :: STORAGE_INVALID_CONTENT_RANGE ,
'description' => 'The content range is invalid. Please check the value of the Content-Range header.' ,
'code' => 400 ,
],
2022-02-17 11:55:54 +13:00
Exception :: STORAGE_INVALID_RANGE => [
'name' => Exception :: STORAGE_INVALID_RANGE ,
'description' => 'The requested range is not satisfiable. Please check the value of the Range header.' ,
'code' => 416 ,
2022-02-07 03:35:17 +13:00
],
2023-05-18 06:56:07 +12:00
Exception :: STORAGE_INVALID_APPWRITE_ID => [
'name' => Exception :: STORAGE_INVALID_APPWRITE_ID ,
2023-08-22 16:15:15 +12:00
'description' => 'The value for x-appwrite-id header is invalid. Please check the value of the x-appwrite-id header is a valid id and not unique().' ,
2023-05-18 06:56:07 +12:00
'code' => 400 ,
],
2022-02-07 05:12:15 +13:00
2023-05-22 22:58:13 +12:00
/** VCS */
Exception :: INSTALLATION_NOT_FOUND => [
'name' => Exception :: INSTALLATION_NOT_FOUND ,
2023-08-23 08:30:00 +12:00
'description' => 'Installation with the requested ID could not be found. Check to see if the ID is correct, or create the installation.' ,
2023-05-22 22:58:13 +12:00
'code' => 404 ,
],
2023-07-31 18:47:47 +12:00
Exception :: PROVIDER_REPOSITORY_NOT_FOUND => [
'name' => Exception :: PROVIDER_REPOSITORY_NOT_FOUND ,
2023-08-23 20:29:01 +12:00
'description' => 'VCS (Version Control System) repository with the requested ID could not be found. Check to see if the ID is correct, and if it belongs to installationId you provided.' ,
2023-06-08 03:50:32 +12:00
'code' => 404 ,
],
2023-07-31 18:47:47 +12:00
Exception :: REPOSITORY_NOT_FOUND => [
'name' => Exception :: REPOSITORY_NOT_FOUND ,
2023-08-23 20:29:01 +12:00
'description' => 'Repository with the requested ID could not be found. Check to see if the ID is correct, or create the respository.' ,
2023-06-28 20:48:10 +12:00
'code' => 404 ,
],
2023-07-31 18:47:47 +12:00
Exception :: PROVIDER_CONTRIBUTION_CONFLICT => [
'name' => Exception :: PROVIDER_CONTRIBUTION_CONFLICT ,
2023-08-12 01:34:57 +12:00
'description' => 'External contribution is already authorized.' ,
2023-06-28 20:48:10 +12:00
'code' => 409 ,
],
2023-08-18 01:54:57 +12:00
Exception :: GENERAL_PROVIDER_FAILURE => [
'name' => Exception :: GENERAL_PROVIDER_FAILURE ,
2023-08-23 08:30:00 +12:00
'description' => 'VCS (Version Control System) provider failed to proccess the request. We believe this is an error with the VCS provider. Try again, or contact support for more information.' ,
2023-08-18 01:54:57 +12:00
'code' => 400 ,
],
2023-05-22 22:58:13 +12: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
],
2022-02-28 00:57:41 +13:00
Exception :: FUNCTION_RUNTIME_UNSUPPORTED => [
'name' => Exception :: FUNCTION_RUNTIME_UNSUPPORTED ,
'description' => 'The requested runtime is either inactive or unsupported. Please check the value of the _APP_FUNCTIONS_RUNTIMES environment variable.' ,
'code' => 404 ,
],
2023-03-16 23:07:15 +13:00
Exception :: FUNCTION_ENTRYPOINT_MISSING => [
'name' => Exception :: FUNCTION_RUNTIME_UNSUPPORTED ,
2023-08-23 20:16:23 +12:00
'description' => 'Entrypoint for your Appwrite Function is missing. Please specify it when making deployment or update the entrypoint under your function\'s "Settings" > "Configuration" > "Entrypoint".' ,
2023-03-16 23:07:15 +13:00
'code' => 404 ,
],
2022-02-28 00:57:41 +13:00
/** Builds */
Exception :: BUILD_NOT_FOUND => [
'name' => Exception :: BUILD_NOT_FOUND ,
'description' => 'Build with the requested ID could not be found.' ,
'code' => 404 ,
],
Exception :: BUILD_NOT_READY => [
'name' => Exception :: BUILD_NOT_READY ,
2022-07-28 01:47:35 +12:00
'description' => 'Build with the requested ID is building and not ready for execution.' ,
2022-02-28 00:57:41 +13:00
'code' => 400 ,
],
Exception :: BUILD_IN_PROGRESS => [
'name' => Exception :: BUILD_IN_PROGRESS ,
2022-02-28 06:14:04 +13:00
'description' => 'Build with the requested ID is already in progress. Please wait before you can retry.' ,
2022-02-28 00:57:41 +13:00
'code' => 400 ,
],
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
2022-08-14 18:56:12 +12:00
/** Databases */
2022-07-28 01:47:35 +12:00
Exception :: DATABASE_NOT_FOUND => [
'name' => Exception :: DATABASE_NOT_FOUND ,
'description' => 'Database not found' ,
'code' => 404
],
Exception :: DATABASE_ALREADY_EXISTS => [
'name' => Exception :: DATABASE_ALREADY_EXISTS ,
'description' => 'Database already exists' ,
'code' => 409
],
2023-10-19 15:32:45 +13:00
Exception :: DATABASE_TIMEOUT => [
'name' => Exception :: DATABASE_TIMEOUT ,
2023-10-19 17:12:05 +13:00
'description' => 'Database timed out. Try adjusting your queries or adding an index.' ,
2023-10-19 15:32:45 +13:00
'code' => 408
],
2022-07-28 01:47:35 +12: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 ,
2023-10-05 02:49:45 +13:00
'description' => 'A collection with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID.' ,
2022-02-08 12:17:52 +13:00
'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
],
2023-06-07 13:51:24 +12:00
Exception :: DOCUMENT_MISSING_DATA => [
'name' => Exception :: DOCUMENT_MISSING_DATA ,
2023-08-22 16:15:15 +12:00
'description' => 'The document data is missing. Try again with document data populated' ,
2023-06-07 13:51:24 +12:00
'code' => 400 ,
],
2022-02-07 05:56:30 +13:00
Exception :: DOCUMENT_MISSING_PAYLOAD => [
'name' => Exception :: DOCUMENT_MISSING_PAYLOAD ,
2023-08-22 16:15:15 +12:00
'description' => 'The document data and permissions are missing. You must provide either document data or permissions to be updated.' ,
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 ,
2023-10-05 02:49:45 +13:00
'description' => 'Document with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID.' ,
2022-02-08 12:17:52 +13:00
'code' => 409 ,
2022-02-07 05:56:30 +13:00
],
2023-01-20 13:36:17 +13:00
Exception :: DOCUMENT_UPDATE_CONFLICT => [
'name' => Exception :: DOCUMENT_UPDATE_CONFLICT ,
'description' => 'Remote document is newer than local.' ,
'code' => 409 ,
],
2023-04-06 00:54:44 +12:00
Exception :: DOCUMENT_DELETE_RESTRICTED => [
'name' => Exception :: DOCUMENT_DELETE_RESTRICTED ,
'description' => 'Document cannot be deleted because it is referenced by another document.' ,
'code' => 403 ,
],
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 ,
2023-03-31 18:05:45 +13:00
'description' => 'The attribute required for the index could not be found. Please confirm all your attributes are in the available state.' ,
2022-02-08 12:17:52 +13:00
'code' => 400 ,
2022-02-07 05:56:30 +13:00
],
Exception :: ATTRIBUTE_NOT_AVAILABLE => [
'name' => Exception :: ATTRIBUTE_NOT_AVAILABLE ,
2023-03-31 18:05:45 +13:00
'description' => 'The requested attribute is not yet available. Please try again later.' ,
2022-02-08 12:17:52 +13:00
'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 ,
2023-03-31 18:05:45 +13:00
'description' => 'Default values cannot be set for array or required 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 ,
2023-10-12 08:29:04 +13:00
'description' => 'Attribute with the requested key already exists. Attribute keys must be unique, try again with a different key.' ,
2022-02-08 12:17:52 +13:00
'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
],
2023-03-31 18:06:50 +13:00
Exception :: ATTRIBUTE_TYPE_INVALID => [
'name' => Exception :: ATTRIBUTE_TYPE_INVALID ,
'description' => 'The attribute type is invalid.' ,
'code' => 400 ,
],
2022-02-07 05:56:30 +13:00
/** Indexes */
Exception :: INDEX_NOT_FOUND => [
'name' => Exception :: INDEX_NOT_FOUND ,
2022-02-09 11:47:48 +13:00
'description' => 'Index 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 :: 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 ,
2023-10-12 08:29:04 +13:00
'description' => 'Index with the requested key already exists. Try again with a different key.' ,
2022-02-08 12:17:52 +13:00
'code' => 409 ,
2022-02-07 05:56:30 +13:00
],
2023-06-15 17:28:35 +12:00
Exception :: INDEX_INVALID => [
'name' => Exception :: INDEX_INVALID ,
'description' => 'Index invalid.' ,
'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 ,
2022-02-08 12:23:07 +13:00
'description' => 'Project with the requested ID could not be found. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used.' ,
2022-02-08 10:10:36 +13:00
'code' => 404 ,
],
2023-04-29 19:11:17 +12:00
Exception :: PROJECT_ALREADY_EXISTS => [
'name' => Exception :: PROJECT_ALREADY_EXISTS ,
2023-10-05 02:49:45 +13:00
'description' => 'Project with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID.' ,
2023-04-30 08:24:45 +12:00
'code' => 409 ,
2023-04-29 19:11:17 +12:00
],
2022-02-08 10:10:36 +13:00
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 ,
],
2022-02-09 10:25:52 +13:00
Exception :: PROJECT_PROVIDER_DISABLED => [
'name' => Exception :: PROJECT_PROVIDER_DISABLED ,
2022-02-13 21:37:14 +13:00
'description' => 'The chosen OAuth provider is disabled. You can enable the OAuth provider using the Appwrite console.' ,
2022-02-09 10:25:52 +13:00
'code' => 412 ,
],
Exception :: PROJECT_PROVIDER_UNSUPPORTED => [
'name' => Exception :: PROJECT_PROVIDER_UNSUPPORTED ,
2022-11-22 04:37:34 +13:00
'description' => 'The chosen OAuth provider is unsupported. Please check the <a href="/docs/client/account?sdk=web-default#accountCreateOAuth2Session">Create OAuth2 Session docs</a> for the complete list of supported OAuth providers.' ,
2022-02-09 10:25:52 +13:00
'code' => 501 ,
],
Exception :: PROJECT_INVALID_SUCCESS_URL => [
'name' => Exception :: PROJECT_INVALID_SUCCESS_URL ,
2022-08-14 03:15:19 +12:00
'description' => 'Invalid redirect URL for OAuth success.' ,
2022-02-09 10:25:52 +13:00
'code' => 400 ,
],
Exception :: PROJECT_INVALID_FAILURE_URL => [
'name' => Exception :: PROJECT_INVALID_FAILURE_URL ,
2022-08-14 03:15:19 +12:00
'description' => 'Invalid redirect URL for OAuth failure.' ,
2022-02-09 10:25:52 +13:00
'code' => 400 ,
],
2022-08-14 18:09:46 +12:00
Exception :: PROJECT_RESERVED_PROJECT => [
'name' => Exception :: PROJECT_RESERVED_PROJECT ,
'description' => 'The project ID is reserved. Please choose another project ID.' ,
2022-02-09 10:25:52 +13:00
'code' => 400 ,
],
2022-07-28 01:47:35 +12:00
Exception :: PROJECT_KEY_EXPIRED => [
'name' => Exception :: PROJECT_KEY_EXPIRED ,
'description' => 'The project key has expired. Please generate a new key using the Appwrite console.' ,
'code' => 401 ,
],
2023-07-30 04:03:13 +12:00
Exception :: ROUTER_HOST_NOT_FOUND => [
'name' => Exception :: ROUTER_HOST_NOT_FOUND ,
2023-08-22 16:15:15 +12:00
'description' => 'Host is not trusted. This could occur because you have not configured a custom domain. Add a custom domain to your project first and try again.' ,
2023-07-30 04:03:13 +12:00
'code' => 404 ,
2023-02-10 03:27:11 +13:00
],
2023-08-21 00:14:05 +12:00
Exception :: ROUTER_DOMAIN_NOT_CONFIGURED => [
'name' => Exception :: ROUTER_DOMAIN_NOT_CONFIGURED ,
2023-09-05 10:17:14 +12:00
'description' => '_APP_DOMAIN, _APP_DOMAIN_TARGET, and _APP_DOMAIN_FUNCTIONS environment variables have not been configured. Please configure the domain environment variables before accessing the Appwrite Console via any IP address or hostname other than localhost. This value could be an IP like 203.0.113.0 or a hostname like example.com.' ,
2023-08-21 00:14:05 +12:00
'code' => 500 ,
],
2023-07-28 19:56:07 +12:00
Exception :: RULE_RESOURCE_NOT_FOUND => [
'name' => Exception :: RULE_RESOURCE_NOT_FOUND ,
2023-08-22 16:15:15 +12:00
'description' => 'Resource could not be found. Please check if the resourceId and resourceType are correct, or if the resource actually exists.' ,
2023-03-09 07:30:01 +13:00
'code' => 404 ,
],
Exception :: RULE_NOT_FOUND => [
'name' => Exception :: RULE_NOT_FOUND ,
2023-08-22 16:15:15 +12:00
'description' => 'Rule with the requested ID could not be found. Please check if the ID provided is correct or if the rule actually exists.' ,
2023-03-09 07:30:01 +13:00
'code' => 404 ,
],
Exception :: RULE_ALREADY_EXISTS => [
'name' => Exception :: RULE_ALREADY_EXISTS ,
2023-08-23 20:29:01 +12:00
'description' => 'Domain is already used. Please try again with a different domain.' ,
2023-03-09 07:30:01 +13:00
'code' => 409 ,
],
Exception :: RULE_VERIFICATION_FAILED => [
'name' => Exception :: RULE_VERIFICATION_FAILED ,
2023-08-22 16:15:15 +12:00
'description' => 'Domain verification failed. Please check if your DNS records are correct and try again.' ,
2023-03-09 07:30:01 +13:00
'code' => 401 ,
],
2023-05-23 17:09:17 +12:00
Exception :: PROJECT_SMTP_CONFIG_INVALID => [
'name' => Exception :: PROJECT_SMTP_CONFIG_INVALID ,
2023-08-22 16:15:15 +12:00
'description' => 'Provided SMTP config is invalid. Please check the configured values and try again.' ,
2023-05-23 17:09:17 +12:00
'code' => 400 ,
],
2023-05-11 18:52:27 +12:00
Exception :: PROJECT_TEMPLATE_DEFAULT_DELETION => [
'name' => Exception :: PROJECT_TEMPLATE_DEFAULT_DELETION ,
2023-08-26 03:13:25 +12:00
'description' => 'You can\'t delete default template. If you are trying to reset your template changes, you can ignore this error as it\'s already been reset.' ,
2023-04-19 20:44:22 +12:00
'code' => 401 ,
],
2022-02-08 10:10:36 +13:00
Exception :: WEBHOOK_NOT_FOUND => [
'name' => Exception :: WEBHOOK_NOT_FOUND ,
2022-02-08 12:23:07 +13:00
'description' => 'Webhook with the requested ID could not be found.' ,
2022-02-08 10:10:36 +13:00
'code' => 404 ,
],
Exception :: KEY_NOT_FOUND => [
'name' => Exception :: KEY_NOT_FOUND ,
2022-02-08 12:23:07 +13:00
'description' => 'Key with the requested ID could not be found.' ,
2022-02-08 10:10:36 +13:00
'code' => 404 ,
],
Exception :: PLATFORM_NOT_FOUND => [
'name' => Exception :: PLATFORM_NOT_FOUND ,
2022-02-08 12:23:07 +13:00
'description' => 'Platform with the requested ID could not be found.' ,
2022-02-08 10:10:36 +13:00
'code' => 404 ,
],
2022-07-20 19:18:49 +12:00
Exception :: VARIABLE_NOT_FOUND => [
'name' => Exception :: VARIABLE_NOT_FOUND ,
'description' => 'Variable with the requested ID could not be found.' ,
'code' => 404 ,
],
Exception :: VARIABLE_ALREADY_EXISTS => [
'name' => Exception :: VARIABLE_ALREADY_EXISTS ,
2023-08-23 08:30:00 +12:00
'description' => 'Variable with the same ID already exists in this project. Try again with a different ID.' ,
2022-02-08 10:10:36 +13:00
'code' => 409 ,
],
2022-04-26 19:49:36 +12:00
Exception :: GRAPHQL_NO_QUERY => [
'name' => Exception :: GRAPHQL_NO_QUERY ,
2022-10-14 13:18:08 +13:00
'description' => 'Param "query" is not optional.' ,
2022-07-14 15:57:34 +12:00
'code' => 400 ,
],
Exception :: GRAPHQL_TOO_MANY_QUERIES => [
'name' => Exception :: GRAPHQL_TOO_MANY_QUERIES ,
2022-09-21 18:36:43 +12:00
'description' => 'Too many queries.' ,
2022-04-26 19:49:36 +12:00
'code' => 400 ,
],
2023-08-10 10:51:36 +12:00
2023-08-05 04:21:41 +12:00
/** Migrations */
Exception :: MIGRATION_NOT_FOUND => [
'name' => Exception :: MIGRATION_NOT_FOUND ,
2023-08-22 16:15:15 +12:00
'description' => 'Migration with the requested ID could not be found. Please verify that the provided ID is correct and try again.' ,
2023-08-05 04:21:41 +12:00
'code' => 404 ,
],
Exception :: MIGRATION_ALREADY_EXISTS => [
'name' => Exception :: MIGRATION_ALREADY_EXISTS ,
2023-08-22 16:15:15 +12:00
'description' => 'Migration with the requested ID already exists. Try again with a different ID.' ,
2023-08-05 04:21:41 +12:00
'code' => 409 ,
],
Exception :: MIGRATION_IN_PROGRESS => [
'name' => Exception :: MIGRATION_IN_PROGRESS ,
2023-08-22 16:15:15 +12:00
'description' => 'Migration is already in progress. You can check the status of the migration in your Appwrite Console\'s "Settings" > "Migrations".' ,
2023-08-05 04:21:41 +12:00
'code' => 409 ,
],
2023-10-25 01:32:22 +13:00
/** Realtime */
Exception :: REALTIME_MESSAGE_FORMAT_INVALID => [
'name' => Exception :: REALTIME_MESSAGE_FORMAT_INVALID ,
'description' => 'Message format is not valid.' ,
'code' => 1003 ,
],
Exception :: REALTIME_POLICY_VIOLATION => [
'name' => Exception :: REALTIME_POLICY_VIOLATION ,
'description' => 'Policy violation.' ,
'code' => 1008 ,
],
Exception :: REALTIME_TOO_MANY_MESSAGES => [
'name' => Exception :: REALTIME_TOO_MANY_MESSAGES ,
'description' => 'Too many messages.' ,
'code' => 1013 ,
],
2023-10-07 05:02:01 +13:00
Exception :: MIGRATION_PROVIDER_ERROR => [
'name' => Exception :: MIGRATION_PROVIDER_ERROR ,
'description' => 'An error occurred on the provider\'s side. Please try again later.' ,
2023-10-16 23:57:17 +13:00
'code' => 400 ,
2023-10-07 05:02:01 +13:00
],
2023-08-23 20:16:52 +12:00
];