Ori Liel has uploaded a new change for review.

Change subject: restapi: Error Messages - Missing Categories
......................................................................

restapi: Error Messages - Missing Categories

Mappings of some error categories are missing.
This should have been part of: http://gerrit.ovirt.org/#/c/14498/7

Bug-Url: https://bugzilla.redhat.com/755579
Change-Id: I4e47ce32eda925a1dc45e16a46c9b5926279ce7a
Signed-off-by: Ori Liel <[email protected]>
---
M 
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/util/ErrorMessageHelper.java
1 file changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/04/15504/1

diff --git 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/util/ErrorMessageHelper.java
 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/util/ErrorMessageHelper.java
index c293aa4..b691d1fd 100644
--- 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/util/ErrorMessageHelper.java
+++ 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/util/ErrorMessageHelper.java
@@ -62,7 +62,16 @@
             return Status.BAD_REQUEST;
         case DATA_CORRUPTION:
             return Status.INTERNAL_SERVER_ERROR;
-
+        case INTERNAL_ERROR:
+            return Status.INTERNAL_SERVER_ERROR;
+        case NO_AUTHENTICATION:
+            return Status.UNAUTHORIZED;
+        case NO_PERMISSION:
+            return Status.FORBIDDEN;
+        case NOT_SUPPORTED:
+            return Status.BAD_REQUEST;
+        case INCOMPATIBLE_VERSION:
+            return Status.BAD_REQUEST;
         default:
             return Status.BAD_REQUEST;
         }


-- 
To view, visit http://gerrit.ovirt.org/15504
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e47ce32eda925a1dc45e16a46c9b5926279ce7a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ori Liel <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to