From 1f3f9babc36db179842e666bb9531b698c3f51a5 Mon Sep 17 00:00:00 2001 From: KoalaGeo Date: Tue, 25 Apr 2023 15:35:36 +0100 Subject: [PATCH] add 500 error response to errors.py --- app/errors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/errors.py b/app/errors.py index 1e61f30e..40275b09 100644 --- a/app/errors.py +++ b/app/errors.py @@ -7,7 +7,8 @@ # Define error responses error_responses = { status.HTTP_404_NOT_FOUND: {"model": ErrorResponse}, - status.HTTP_422_UNPROCESSABLE_ENTITY: {"model": ErrorResponse} + status.HTTP_422_UNPROCESSABLE_ENTITY: {"model": ErrorResponse}, + status.HTTP_500_INTERNAL_SERVER_ERROR: {"model": ErrorResponse} }