commit | 30c3d75dbb9023a5eeeeca204420b1b45669874c | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Thu Oct 04 13:08:41 2018 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Fri Oct 05 10:56:11 2018 -0700 |
tree | ccc01b458fd2f9282a48de68842f364b8b99d3bc | |
parent | d111dc66bc7f70feda8e58b41cf1108ce1db266c [diff] [blame] |
SEBA-282 return 401 on permission error Change-Id: Ica0c1d6b2aae5a8ed13123f2e5c0382e418b5433
diff --git a/src/web_server/main.py b/src/web_server/main.py index 3e2cf8f..9a6c9b3 100644 --- a/src/web_server/main.py +++ b/src/web_server/main.py
@@ -51,6 +51,8 @@ request.setResponseCode(500) try: f = failure.getErrorMessage() + if f.startswith("XOSPermissionDenied"): + request.setResponseCode(401) log.info("[XOS-TOSCA] Error while loading TOSCA: \n\n", failure=f) return f except Exception: