ApiErrorCode: Add API error code 401, 405

Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e6d2b239
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e6d2b239
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e6d2b239

Branch: refs/heads/master
Commit: e6d2b2391bf4d4fffbbb2be1c4adfb9737b78915
Parents: accd574
Author: Rohit Yadav <rohit.ya...@shapeblue.com>
Authored: Tue Aug 12 07:24:42 2014 +0200
Committer: Rohit Yadav <rohit.ya...@shapeblue.com>
Committed: Tue Aug 12 12:01:29 2014 +0200

----------------------------------------------------------------------
 api/src/org/apache/cloudstack/api/ApiErrorCode.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e6d2b239/api/src/org/apache/cloudstack/api/ApiErrorCode.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/ApiErrorCode.java 
b/api/src/org/apache/cloudstack/api/ApiErrorCode.java
index fa47f30..2784058 100644
--- a/api/src/org/apache/cloudstack/api/ApiErrorCode.java
+++ b/api/src/org/apache/cloudstack/api/ApiErrorCode.java
@@ -22,6 +22,8 @@ package org.apache.cloudstack.api;
  */
 public enum ApiErrorCode {
 
+    UNAUTHORIZED(401),
+    METHOD_NOT_ALLOWED(405),
     MALFORMED_PARAMETER_ERROR(430),
     PARAM_ERROR(431),
     UNSUPPORTED_ACTION_ERROR(432),

Reply via email to