public static enum GMResponse.Action extends Enum<GMResponse.Action>
| Enum Constant and Description |
|---|
AUTHLETE_ERROR
An error occurred on Authlete side.
|
CALLER_ERROR
The API call is wrong.
|
FORBIDDEN
The access token cannot be used to manage the grant ID.
|
NO_CONTENT
The access token is valid and the grant has been revoked successfully.
|
NOT_FOUND
The grant ID was not found.
|
OK
The access token is valid and information about the grant has been
retrieved successfully.
|
UNAUTHORIZED
The grant management request includes no access token or the access
token is invalid.
|
| Modifier and Type | Method and Description |
|---|---|
static GMResponse.Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GMResponse.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GMResponse.Action OK
"200 OK" to the client application with the content
type "application/json".public static final GMResponse.Action NO_CONTENT
204 No Content
to the client application.public static final GMResponse.Action UNAUTHORIZED
401 Unauthorized to the client application.public static final GMResponse.Action FORBIDDEN
403 Forbidden
to the client application.public static final GMResponse.Action NOT_FOUND
"404 Not Found" to the client application.public static final GMResponse.Action CALLER_ERROR
gmAction request
parameter is not included. The implementation of the endpoint should
be fixed. It's up to the implementation how to respond to the client
application. A simple implementation would return
500 Internal Server Error.public static final GMResponse.Action AUTHLETE_ERROR
"500 Internal Server Error".public static GMResponse.Action[] values()
for (GMResponse.Action c : GMResponse.Action.values()) System.out.println(c);
public static GMResponse.Action 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 nullCopyright © 2022. All rights reserved.