You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by dk...@apache.org on 2015/06/04 12:15:24 UTC
[10/43] incubator-tinkerpop git commit: Add a couple extra Gremlin
Server response status codes for future use.
Add a couple extra Gremlin Server response status codes for future use.
Specifically added 401 and 403 analagous to Unauthorized and Forbidden HTTP Status codes.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/3456fce1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/3456fce1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/3456fce1
Branch: refs/heads/preprocessor
Commit: 3456fce11d227c710267d2a3f9cf7cbe2d1869af
Parents: c387430
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Jun 2 12:21:34 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Jun 2 14:43:01 2015 -0400
----------------------------------------------------------------------
.../gremlin/driver/message/ResponseStatusCode.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/3456fce1/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/message/ResponseStatusCode.java
----------------------------------------------------------------------
diff --git a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/message/ResponseStatusCode.java b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/message/ResponseStatusCode.java
index ded0f95..7ae4948 100644
--- a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/message/ResponseStatusCode.java
+++ b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/message/ResponseStatusCode.java
@@ -48,6 +48,18 @@ public enum ResponseStatusCode {
PARTIAL_CONTENT(206),
/**
+ * The server could not authenticate the request. This code is for future use.
+ */
+ UNAUTHORIZED(401),
+
+ /**
+ * The server could authenticate the request, but will not fulfill it. This is a general purpose code that
+ * would typically be returned if the request is authenticated but not authorized to do what it is doing. This
+ * code is for future use.
+ */
+ FORBIDDEN(403),
+
+ /**
* The request message was not properly formatted which means it could not be parsed at all or the "op" code was
* not recognized such that Gremlin Server could properly route it for processing. Check the message format and
* retry the request.