Skip to content

Commit 5685d19

Browse files
andrewhowdencommageprince
authored andcommitted
Modify Report processor to return 500
The report processor is currently returning a HTTP 503 status code; generally used for temporarily failures to connect to a service such as when that service is in maintenance mode, when an upstream proxy is unavailable etc. This commit modifies the report HTTP code to be a 500. The author believes this to be a better reflection that the error is miscellaneous in nature, and that action is required in order to change it (i.e. it is not a temporary condition)
1 parent f06f52c commit 5685d19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pub/errors/processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function process503()
203203
public function processReport()
204204
{
205205
$this->pageTitle = 'There has been an error processing your request';
206-
$this->_response->setHttpResponseCode(503);
206+
$this->_response->setHttpResponseCode(500);
207207

208208
$this->showErrorMsg = false;
209209
$this->showSentMsg = false;

0 commit comments

Comments
 (0)