Skip to content

Commit

Permalink
add 500 error response to errors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaGeo committed Apr 25, 2023
1 parent 839a417 commit 1f3f9ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}


Expand Down

0 comments on commit 1f3f9ba

Please sign in to comment.