We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 360dd5f commit 7f30396Copy full SHA for 7f30396
1 file changed
archipy/helpers/utils/app_utils.py
@@ -39,7 +39,7 @@ def create_error_response(exception: BaseError) -> JSONResponse:
39
BaseUtils.capture_exception(exception)
40
# Default to internal server error if status code is not set
41
status_code = (
42
- exception.http_status_code if exception.http_status_code else HTTPStatus.INTERNAL_SERVER_ERROR.value
+ exception.http_status_code_value if exception.http_status_code_value else HTTPStatus.INTERNAL_SERVER_ERROR.value
43
)
44
return JSONResponse(status_code=status_code, content=exception.to_dict())
45
0 commit comments