Permalink
Browse files

Only change if status 200

  • Loading branch information...
1 parent f337855 commit f7f9c4137599e5e7e1a0b2d68903ecd0758bcaa8 @bakura10 committed Jan 14, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 library/Zend/Mvc/View/Http/ExceptionStrategy.php
@@ -160,6 +160,11 @@ public function prepareExceptionViewModel(MvcEvent $e)
$response = new HttpResponse();
$response->setStatusCode(500);
$e->setResponse($response);
+ } else {
+ $statusCode = $response->getStatusCode();
+ if ($statusCode === 200) {
+ $response->setStatusCode(500);
+ }
}
break;

0 comments on commit f7f9c41

Please sign in to comment.