feat: update error codes in the projects API
This commit is contained in:
parent
11cb9b9dd9
commit
78a4091f62
|
@ -61,6 +61,41 @@ return [
|
|||
'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.',
|
||||
'statusCode' => 400,
|
||||
],
|
||||
Exception::WEBHOOK_NOT_FOUND => [
|
||||
'name' => Exception::WEBHOOK_NOT_FOUND,
|
||||
'description' => 'The requested webhook could not be found.',
|
||||
'statusCode' => 404,
|
||||
],
|
||||
Exception::KEY_NOT_FOUND => [
|
||||
'name' => Exception::KEY_NOT_FOUND,
|
||||
'description' => 'The requested key could not be found.',
|
||||
'statusCode' => 404,
|
||||
],
|
||||
Exception::PLATFORM_NOT_FOUND => [
|
||||
'name' => Exception::PLATFORM_NOT_FOUND,
|
||||
'description' => 'The requested platform could not be found.',
|
||||
'statusCode' => 404,
|
||||
],
|
||||
Exception::DOMAIN_NOT_FOUND => [
|
||||
'name' => Exception::DOMAIN_NOT_FOUND,
|
||||
'description' => 'The requested domain could not be found.',
|
||||
'statusCode' => 404,
|
||||
],
|
||||
Exception::DOMAIN_ALREADY_EXISTS => [
|
||||
'name' => Exception::DOMAIN_ALREADY_EXISTS,
|
||||
'description' => 'The requested domain already exists.',
|
||||
'statusCode' => 409,
|
||||
],
|
||||
Exception::DOMAIN_UNREACHABLE => [
|
||||
'name' => Exception::DOMAIN_UNREACHABLE,
|
||||
'description' => 'The requested domain is not reachable.',
|
||||
'statusCode' => 503,
|
||||
],
|
||||
Exception::DOMAIN_VERIFICATION_FAILED => [
|
||||
'name' => Exception::DOMAIN_VERIFICATION_FAILED,
|
||||
'description' => 'The requested domain verification failed.',
|
||||
'statusCode' => 503,
|
||||
],
|
||||
|
||||
/** User Errors */
|
||||
Exception::USER_COUNT_EXCEEDED => [
|
||||
|
|
Loading…
Reference in a new issue