Skip to content

Commit 7f30396

Browse files
author
negar.a
committed
fix: http status code name mismatch fixed
1 parent 360dd5f commit 7f30396

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

archipy/helpers/utils/app_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def create_error_response(exception: BaseError) -> JSONResponse:
3939
BaseUtils.capture_exception(exception)
4040
# Default to internal server error if status code is not set
4141
status_code = (
42-
exception.http_status_code if exception.http_status_code else HTTPStatus.INTERNAL_SERVER_ERROR.value
42+
exception.http_status_code_value if exception.http_status_code_value else HTTPStatus.INTERNAL_SERVER_ERROR.value
4343
)
4444
return JSONResponse(status_code=status_code, content=exception.to_dict())
4545

0 commit comments

Comments
 (0)