From 72c502fd6c23e62c5ed26cd5c13d6ec22ac9c52c Mon Sep 17 00:00:00 2001 From: Andrew Howden Date: Tue, 17 Oct 2017 12:44:36 +0200 Subject: [PATCH] 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) --- pub/errors/processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pub/errors/processor.php b/pub/errors/processor.php index 0b9fefc8b441c..896538853485e 100644 --- a/pub/errors/processor.php +++ b/pub/errors/processor.php @@ -215,7 +215,7 @@ public function process503() public function processReport() { $this->pageTitle = 'There has been an error processing your request'; - $this->_response->setHttpResponseCode(503); + $this->_response->setHttpResponseCode(500); $this->showErrorMsg = false; $this->showSentMsg = false;