public enum ResponseStatusCode extends Enum<ResponseStatusCode>
Enum Constant and Description |
---|
AUTHENTICATE
A challenge from the server for the client to authenticate its request.
|
FORBIDDEN
The server could authenticate the request, but will not fulfill it.
|
NO_CONTENT
The server processed the request but there is no result to return (e.g.
|
PARTIAL_CONTENT
The server successfully returned some content, but there is more in the stream to arrive - wait for a
SUCCESS to signify the end of the stream. |
REQUEST_ERROR_INVALID_REQUEST_ARGUMENTS
The request message was parseable, but the arguments supplied in the message were in conflict or incomplete.
|
REQUEST_ERROR_MALFORMED_REQUEST
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.
|
REQUEST_ERROR_SERIALIZATION
The request message contains objects that were not serializable on the client side.
|
SERVER_ERROR
A general server error occurred that prevented the request from being processed.
|
SERVER_ERROR_EVALUATION
The request submitted for processing evaluated by the server with errors and could not be processed.
|
SERVER_ERROR_FAIL_STEP
A server error that is produced when the
GraphTraversal.fail() step is triggered. |
SERVER_ERROR_SERIALIZATION
The server was not capable of serializing an object that was returned from the script supplied on the request.
|
SERVER_ERROR_TEMPORARY
A server error that indicates that the client should retry the request.
|
SERVER_ERROR_TIMEOUT
The server exceeded one of the timeout settings for the request and could therefore only partially responded
or did not respond at all.
|
SUCCESS
The server successfully processed a request to completion - there are no messages remaining in this stream.
|
TOO_MANY_REQUESTS
Indicates that too many requests have been sent in a given amount of time.
|
UNAUTHORIZED
The server could not authenticate the request or the client requested a resource it did not have access to.
|
Modifier and Type | Method and Description |
---|---|
static ResponseStatusCode |
getFromValue(int codeValue) |
int |
getValue() |
boolean |
isFinalResponse()
Indicates whether the status code can only be used in the last response for a particular request.
|
boolean |
isSuccess() |
static ResponseStatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseStatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseStatusCode SUCCESS
public static final ResponseStatusCode NO_CONTENT
Iterator
with no elements).public static final ResponseStatusCode PARTIAL_CONTENT
SUCCESS
to signify the end of the stream.public static final ResponseStatusCode UNAUTHORIZED
public static final ResponseStatusCode FORBIDDEN
public static final ResponseStatusCode AUTHENTICATE
public static final ResponseStatusCode TOO_MANY_REQUESTS
public static final ResponseStatusCode REQUEST_ERROR_SERIALIZATION
public static final ResponseStatusCode REQUEST_ERROR_MALFORMED_REQUEST
public static final ResponseStatusCode REQUEST_ERROR_INVALID_REQUEST_ARGUMENTS
public static final ResponseStatusCode SERVER_ERROR
public static final ResponseStatusCode SERVER_ERROR_FAIL_STEP
GraphTraversal.fail()
step is triggered. The returned exception
will include information consistent with the Failure
interface.public static final ResponseStatusCode SERVER_ERROR_TEMPORARY
public static final ResponseStatusCode SERVER_ERROR_EVALUATION
public static final ResponseStatusCode SERVER_ERROR_TIMEOUT
public static final ResponseStatusCode SERVER_ERROR_SERIALIZATION
public static ResponseStatusCode[] values()
for (ResponseStatusCode c : ResponseStatusCode.values()) System.out.println(c);
public static ResponseStatusCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ResponseStatusCode getFromValue(int codeValue)
public int getValue()
public boolean isSuccess()
public boolean isFinalResponse()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.