diff --git a/app/dependencies.py b/app/dependencies.py index bfab9f1..a6b25fe 100644 --- a/app/dependencies.py +++ b/app/dependencies.py @@ -807,6 +807,10 @@ def handle_db_errors(func): return result + except HTTPException: + # Let intentional HTTP errors (401, 404, etc.) pass through unchanged + raise + except Exception as e: elapsed_time = time.time() - start_time error_trace = traceback.format_exc()