From 7f30396689291ccce86dc2121a98605bbcbd7086 Mon Sep 17 00:00:00 2001 From: "negar.a" Date: Mon, 28 Jul 2025 11:48:09 +0330 Subject: [PATCH] fix: http status code name mismatch fixed --- archipy/helpers/utils/app_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archipy/helpers/utils/app_utils.py b/archipy/helpers/utils/app_utils.py index 47a19701..999d1060 100644 --- a/archipy/helpers/utils/app_utils.py +++ b/archipy/helpers/utils/app_utils.py @@ -39,7 +39,7 @@ def create_error_response(exception: BaseError) -> JSONResponse: BaseUtils.capture_exception(exception) # Default to internal server error if status code is not set status_code = ( - 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 ) return JSONResponse(status_code=status_code, content=exception.to_dict())