diff --git a/Exception/Http/HttpExceptionTrait.php b/Exception/Http/HttpExceptionTrait.php index 5d78455..0c85357 100644 --- a/Exception/Http/HttpExceptionTrait.php +++ b/Exception/Http/HttpExceptionTrait.php @@ -78,6 +78,9 @@ public function __construct(ResponseInterface $response) // see RFC 7807 and https://jsonapi.org/format/#error-objects $separator = isset($body['title'], $body['detail']) ? "\n\n" : ''; $message = ($body['title'] ?? '') . $separator . ($body['detail'] ?? ''); + } elseif (isset($body['message'])) { + $this->awsMessage = $body['message']; + $message .= "\n\n" . $body['message'] . "\n\n"; } } else { try {