summaryrefslogtreecommitdiff
path: root/src/server/rz_req_handling.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-04-05 14:38:52 +0300
committerLV-426 <lv-426@taproot.org.il>2015-04-05 14:57:25 +0300
commite99e725098d698359ec065f69fd8879e7a8b5321 (patch)
tree3c75c80aa49f30f55f56100d39534625c7a03de1 /src/server/rz_req_handling.py
parentda2250ab1a11621bf1b864a39ad1b8f8aab1ff9d (diff)
rz_req_handling: make_response__json__html: pass on status arg
Diffstat (limited to 'src/server/rz_req_handling.py')
-rw-r--r--src/server/rz_req_handling.py6
1 files 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=''):
"""