[CORD-967] Added status codes for unauthorized and forbidden

Change-Id: Ic69298afe90c79d130e7af6412bdd0d5af114223
diff --git a/web_server/web_server.py b/web_server/web_server.py
index 433ed4d..5cd5c7a 100644
--- a/web_server/web_server.py
+++ b/web_server/web_server.py
@@ -113,6 +113,12 @@
         elif code == StatusCode.ALREADY_EXISTS:
             request.setResponseCode(409)
             return failure.value.details()
+        elif code == StatusCode.UNAUTHENTICATED:
+            request.setResponseCode(401)
+            return failure.value.details()
+        elif code == StatusCode.PERMISSION_DENIED:
+            request.setResponseCode(403)
+            return failure.value.details()
         else:
             raise