aboutsummaryrefslogtreecommitdiffstats
path: root/moon_interface/moon_interface/http_server.py
diff options
context:
space:
mode:
authorsgdt6900 <rhanafy.ext@orange.com>2018-01-11 11:57:43 +0200
committersgdt6900 <rhanafy.ext@orange.com>2018-01-29 17:33:27 +0200
commit57a6fa48a7c5c581db50f9590b9ad6c4be43ac2d (patch)
tree3c0965da89fd8bb2a8fed441518a7e2c0d1c3a60 /moon_interface/moon_interface/http_server.py
parent0129d960d4c39d96e775674264c06908e121b7ed (diff)
adding some comments to enahnce
removing comments and add todo point Signed-off-by: sgdt6900 <rhanafy.ext@orange.com> Change-Id: I38f21bd7557fb758b50d561a06efe8ea09ca07fc
Diffstat (limited to 'moon_interface/moon_interface/http_server.py')
-rw-r--r--moon_interface/moon_interface/http_server.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/moon_interface/moon_interface/http_server.py b/moon_interface/moon_interface/http_server.py
index 82ee5d91..a2e25377 100644
--- a/moon_interface/moon_interface/http_server.py
+++ b/moon_interface/moon_interface/http_server.py
@@ -114,12 +114,6 @@ class HTTPServer(Server):
def get_400_json(e):
return jsonify({"result": False, "code": 400, "description": str(e)}), 400
- '''
- [Note] i have tried to simulate authz post request (authz_Requests/run) to return 500 response code
- and an AuthzException thrown from their [Line 63] and catched here , then the server here return response
- with 403 code [Forbidden] , is it correct if so why sometime at authz [from Line 137] return a response
- with error code , i think we can do it in the same way as the one mentioned?
- '''
self.app.register_error_handler(400, lambda e: get_400_json)
self.app.register_error_handler(403, exceptions.AuthException)