API Update ErrorPage to respect new HTTP Error codes

This commit is contained in:
Damian Mooyman 2014-05-01 16:34:30 +12:00
parent 435a5ee843
commit 3162d0e664
2 changed files with 4 additions and 0 deletions

View File

@ -201,6 +201,8 @@ class ErrorPage extends Page {
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'),

View File

@ -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'