diff --git a/src/Middleware/AuthenticationServerMiddleware.php b/src/Middleware/AuthenticationServerMiddleware.php index 2be5ca63..2d5ffe41 100644 --- a/src/Middleware/AuthenticationServerMiddleware.php +++ b/src/Middleware/AuthenticationServerMiddleware.php @@ -40,6 +40,7 @@ class AuthenticationServerMiddleware // @codeCoverageIgnoreStart } catch (\Exception $exception) { $response->getBody()->write($exception->getMessage()); + return $response->withStatus(500); // @codeCoverageIgnoreEnd } diff --git a/src/Middleware/ResourceServerMiddleware.php b/src/Middleware/ResourceServerMiddleware.php index e30ded8a..1b127608 100644 --- a/src/Middleware/ResourceServerMiddleware.php +++ b/src/Middleware/ResourceServerMiddleware.php @@ -40,6 +40,7 @@ class ResourceServerMiddleware // @codeCoverageIgnoreStart } catch (\Exception $exception) { $response->getBody()->write($exception->getMessage()); + return $response->withStatus(500); // @codeCoverageIgnoreEnd } diff --git a/src/TemplateRenderer/RendererInterface.php b/src/TemplateRenderer/RendererInterface.php index 0a270c56..74d9b48f 100644 --- a/src/TemplateRenderer/RendererInterface.php +++ b/src/TemplateRenderer/RendererInterface.php @@ -21,4 +21,4 @@ interface RendererInterface * @return string */ public function renderAuthorize(array $data = []); -} \ No newline at end of file +}