Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

API Update ErrorPage to respect new HTTP Error codes

  • Loading branch information...
commit 3162d0e66486d76823f97aa4f9575a76a33f7a81 1 parent 435a5ee
Damian Mooyman tractorcow authored
Showing with 4 additions and 0 deletions.
  1. +2 −0  code/model/ErrorPage.php
  2. +2 −0  lang/en.yml
2  code/model/ErrorPage.php
View
@@ -201,6 +201,8 @@ public function getCMSFields() {
415 => _t('ErrorPage.415', '415 - Unsupported Media Type'),
416 => _t('ErrorPage.416', '416 - Request Range Not Satisfiable'),
417 => _t('ErrorPage.417', '417 - Expectation Failed'),
+ 422 => _t('ErrorPage.422', '422 - Unprocessable Entity'),
+ 429 => _t('ErrorPage.429', '429 - Too Many Requests'),
500 => _t('ErrorPage.500', '500 - Internal Server Error'),
501 => _t('ErrorPage.501', '501 - Not Implemented'),
502 => _t('ErrorPage.502', '502 - Bad Gateway'),
2  lang/en.yml
View
@@ -200,6 +200,8 @@ en:
415: '415 - Unsupported Media Type'
416: '416 - Request Range Not Satisfiable'
417: '417 - Expectation Failed'
+ 422: '422 - Unprocessable Entity'
+ 429: '429 - Too Many Requests'
500: '500 - Internal Server Error'
501: '501 - Not Implemented'
502: '502 - Bad Gateway'
Please sign in to comment.
Something went wrong with that request. Please try again.