Skip to content

Commit 72c502f

Browse files
andrewhowdencomAlexWorking
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 447a24d commit 72c502f

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
@@ -215,7 +215,7 @@ public function process503()
215215
public function processReport()
216216
{
217217
$this->pageTitle = 'There has been an error processing your request';
218-
$this->_response->setHttpResponseCode(503);
218+
$this->_response->setHttpResponseCode(500);
219219

220220
$this->showErrorMsg = false;
221221
$this->showSentMsg = false;

0 commit comments

Comments
 (0)