public enum HttpErrorCode extends Enum<HttpErrorCode>
| Enum Constant and Description |
|---|
ERROR_400_BAD_REQUEST |
ERROR_404_NOT_FOUND |
ERROR_409_CONFLICT |
ERROR_412_PRECONDITION_FAILED |
ERROR_500_INTERNAL_SERVER_ERROR |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
static HttpErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpErrorCode ERROR_400_BAD_REQUEST
public static final HttpErrorCode ERROR_404_NOT_FOUND
public static final HttpErrorCode ERROR_409_CONFLICT
public static final HttpErrorCode ERROR_412_PRECONDITION_FAILED
public static final HttpErrorCode ERROR_500_INTERNAL_SERVER_ERROR
public static HttpErrorCode[] values()
for (HttpErrorCode c : HttpErrorCode.values()) System.out.println(c);
public static HttpErrorCode 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 String getDescription()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.