58 lines
2 KiB
PHP
58 lines
2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
'400' => [
|
|
'title' => 'Bad Request',
|
|
'description' => 'The server could not understand your request. Please check and try again.',
|
|
],
|
|
'401' => [
|
|
'title' => 'Unauthorized',
|
|
'description' => 'You must be logged in to access this page.',
|
|
],
|
|
'403' => [
|
|
'title' => 'Forbidden',
|
|
'description' => 'Sorry, you are forbidden from accessing this page.',
|
|
],
|
|
'404' => [
|
|
'title' => 'Page Not Found',
|
|
'description' => 'Sorry, the page you are looking for could not be found.',
|
|
],
|
|
'405' => [
|
|
'title' => 'Method Not Allowed',
|
|
'description' => 'The method used for this request is not allowed.',
|
|
],
|
|
'408' => [
|
|
'title' => 'Request Timeout',
|
|
'description' => 'The server took too long to respond. Please try again.',
|
|
],
|
|
'419' => [
|
|
'title' => 'Page Expired',
|
|
'description' => 'Your session has expired. Please refresh and try again.',
|
|
],
|
|
'422' => [
|
|
'title' => 'Unprocessable Entity',
|
|
'description' => 'The data provided was invalid. Please check and try again.',
|
|
],
|
|
'429' => [
|
|
'title' => 'Too Many Requests',
|
|
'description' => 'You have made too many requests in a short time. Please slow down.',
|
|
],
|
|
'500' => [
|
|
'title' => 'Server Error',
|
|
'description' => 'Whoops, something went wrong on our servers.',
|
|
],
|
|
'502' => [
|
|
'title' => 'Bad Gateway',
|
|
'description' => 'The server received an invalid response. Please try again later.',
|
|
],
|
|
'503' => [
|
|
'title' => 'Service Unavailable',
|
|
'description' => 'Sorry, we are doing some maintenance. Please check back soon.',
|
|
],
|
|
'504' => [
|
|
'title' => 'Gateway Timeout',
|
|
'description' => 'The server took too long to respond. Please try again later.',
|
|
],
|
|
];
|