From 7fdaf62ef56e1755d65bfbb0706ea0226538ac5a Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 21 Aug 2019 08:19:49 -0400 Subject: [PATCH] Add 'status' field to error response --- app/Exceptions/HttpException.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Exceptions/HttpException.php b/app/Exceptions/HttpException.php index 16c18544..ed381bfe 100644 --- a/app/Exceptions/HttpException.php +++ b/app/Exceptions/HttpException.php @@ -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'] = [