1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

feat: update error codes in the health API

This commit is contained in:
Christy Jacob 2022-02-06 21:27:13 +04:00
parent 53807ab47c
commit adf103730b

View file

@ -49,6 +49,36 @@ return [
'description' => 'SMTP is disabled on your Appwrite instance. Please contact your project ',
'statusCode' => 503,
],
Exception::DATABASE_NOT_AVAILABLE => [
'name' => Exception::DATABASE_NOT_AVAILABLE,
'description' => 'Database is not available. Please contact your project owner.',
'statusCode' => 503,
],
Exception::CACHE_NOT_AVAILABLE => [
'name' => Exception::CACHE_NOT_AVAILABLE,
'description' => 'Cache is not available. Please contact your project owner.',
'statusCode' => 503,
],
Exception::TIME_GAPS_DETECTED => [
'name' => Exception::TIME_GAPS_DETECTED,
'description' => 'Time gaps detected. Please contact your project owner.',
'statusCode' => 503,
],
Exception::STORAGE_NOT_READABLE => [
'name' => Exception::STORAGE_NOT_READABLE,
'description' => 'Storage is not readable. Please contact your project owner.',
'statusCode' => 503,
],
Exception::STORAGE_NOT_WRITABLE => [
'name' => Exception::STORAGE_NOT_WRITABLE,
'description' => 'Storage is not writable. Please contact your project owner.',
'statusCode' => 503,
],
Exception::ANTIVIRUS_NOT_AVAILABLE => [
'name' => Exception::ANTIVIRUS_NOT_AVAILABLE,
'description' => 'Antivirus is not available. Please contact your project owner.',
'statusCode' => 503,
],
/** Project Errors */
Exception::PROJECT_NOT_FOUND => [