Add 'status' field to error response

This commit is contained in:
Nabeel Shahzad 2019-08-21 08:19:49 -04:00
parent 182aabf426
commit 7fdaf62ef5

View File

@ -31,6 +31,7 @@ abstract class HttpException extends SymfonyHttpException
$response['type'] = config('phpvms.error_root').'/'.$this->getErrorType();
$response['title'] = $this->getMessage();
$response['details'] = $this->getErrorDetails();
$response['status'] = $this->getStatusCode();
// For backwards compatibility
$response['error'] = [