pages.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. return array (
  3. // STANDARD ERROR CODES
  4. // =======================================================
  5. '400' => array (
  6. 'title' => 'Bad Request',
  7. 'message' => 'The server cannot process the request due to something that is perceived to be a client error.'
  8. ),
  9. '401' => array (
  10. 'title' => 'Unauthorized',
  11. 'message' => 'The requested resource requires an authentication.'
  12. ),
  13. '403' => array (
  14. 'title' => 'Access Denied',
  15. 'message' => 'The requested resource requires an authentication.'
  16. ),
  17. // http 404 not found
  18. '404' => array (
  19. 'title' => 'Resource not found',
  20. 'message' => 'The requested resource could not be found but may be available again in the future.'
  21. ),
  22. // internal server error
  23. '500' => array (
  24. 'title' => 'Webservice currently unavailable',
  25. 'message' => "An unexpected condition was encountered.\nOur service team has been dispatched to bring it back online."
  26. ),
  27. // unknown http method
  28. '501' => array (
  29. 'title' => 'Not Implemented',
  30. 'message' => 'The Webserver cannot recognize the request method.'
  31. ),
  32. // http proxy forward error
  33. '502' => array (
  34. 'title' => 'Webservice currently unavailable',
  35. 'message' => "We've got some trouble with our backend upstream cluster.\nOur service team has been dispatched to bring it back online."
  36. ),
  37. // webserver service error
  38. '503' => array (
  39. 'title' => 'Webservice currently unavailable',
  40. 'message' => "We've got some trouble with our backend upstream cluster.\nOur service team has been dispatched to bring it back online."
  41. ),
  42. // CUSTOM ERROR CODES
  43. // =======================================================
  44. // webserver origin error
  45. '520' => array(
  46. 'title' => 'Origin Error - Unknown Host',
  47. 'message' => 'The requested hostname is not routed. Use only hostnames to access resources.'
  48. ),
  49. // webserver down error
  50. '521' => array (
  51. 'title' => 'Webservice currently unavailable',
  52. 'message' => "We've got some trouble with our backend upstream cluster.\nOur service team has been dispatched to bring it back online."
  53. ),
  54. // maintenance
  55. '533' => array(
  56. 'title' => 'Scheduled Maintenance',
  57. 'message' => "This site is currently down for maintenance.\nOur service team is working hard to bring it back online soon."
  58. )
  59. );