From e99e725098d698359ec065f69fd8879e7a8b5321 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 5 Apr 2015 14:38:52 +0300 Subject: rz_req_handling: make_response__json__html: pass on status arg --- src/server/rz_req_handling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/rz_req_handling.py b/src/server/rz_req_handling.py index 87e2a2c0..86a0fca1 100644 --- a/src/server/rz_req_handling.py +++ b/src/server/rz_req_handling.py @@ -63,10 +63,10 @@ def common_rest_req_exception_handler(rest_API_endpoint): return rest_API_endpoint(*args, **kwargs) except API_Exception__bad_request as e: log.exception(e) - return common_resp_handle__client_error(error=e) # currently blame client for all DNFs + return common_resp_handle__client_error(error=e) # currently blame client for all DNFs except RZDoc_Exception__not_found as e: log.exception(e) - return common_resp_handle__client_error(error=e) # currently blame client for all DNFs + return common_resp_handle__client_error(error=e) # currently blame client for all DNFs except Exception as e: log.exception(e) return common_resp_handle__server_error(error=e) @@ -108,7 +108,7 @@ def make_response__json__html(status=200, html_str=''): """ Construct a json response with HTML payload """ - return make_response__json(data={'response__html': html_str }) + return make_response__json(status=status, data={'response__html': html_str }) def make_response__json__redirect(redirect_url, status=303, html_str=''): """ -- cgit v1.3.1