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'] = [