Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
ENH: refs #951. Allow all valid HTTP 400 series codes to be passed th…
Browse files Browse the repository at this point in the history
…rough
  • Loading branch information
zachmullen committed Mar 5, 2013
1 parent 2ef9a20 commit 9c94e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/controllers/ErrorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function errorAction()
{
$this->getResponse()->setHttpResponseCode(500);
}
else if($code == 404 || $code == 403)
else if($code >= 400 && $code <= 417)
{
$this->getResponse()->setHttpResponseCode($code);
if($code == 403)
Expand Down

0 comments on commit 9c94e7f

Please sign in to comment.