public class HttpStatus
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static HttpStatus |
BAD_REQUEST |
static HttpStatus |
CONTINUE |
static HttpStatus |
CREATED |
static HttpStatus |
INTERNAL_SERVER_ERROR |
static HttpStatus |
MULTIPLE_CHOICES |
static HttpStatus |
OK |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isError()
Determines whether the status code indicates an error processing
|
boolean |
isSuccessful()
Determines whether the status code indicates a successful processing
|
java.lang.String |
toString() |
static HttpStatus |
valueOf(int code)
Creates new status code from the status code value.
|
public static final HttpStatus CONTINUE
public static final HttpStatus OK
public static final HttpStatus CREATED
public static final HttpStatus MULTIPLE_CHOICES
public static final HttpStatus BAD_REQUEST
public static final HttpStatus INTERNAL_SERVER_ERROR
public static HttpStatus valueOf(int code)
code - a status code value, e.g. 200 for OK, 404 for not found, etc.HttpCode initialized to the status code value.public boolean isSuccessful()
true only, if the status code belongs to the SUCCESS group of 2xx values; false, otherwise.public boolean isError()
true only, if the status code belongs to either USER ERROR group with 4xx values or to SERVER ERROR group
with 5xx values; false, otherwise.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 SAP SE. All Rights Reserved.