public class HttpStatus
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpStatus.HttpStatus400 |
static class |
HttpStatus.HttpStatus401 |
static class |
HttpStatus.HttpStatus403 |
static class |
HttpStatus.HttpStatus404 |
static class |
HttpStatus.HttpStatus405 |
static class |
HttpStatus.HttpStatus408 |
static class |
HttpStatus.HttpStatus409 |
static class |
HttpStatus.HttpStatus500 |
static class |
HttpStatus.HttpStatus503 |
static class |
HttpStatus.Redirection |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
message |
Constructor and Description |
---|
HttpStatus(int status) |
HttpStatus(int status,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
static HttpStatus.HttpStatus400 |
error400() |
static HttpStatus.HttpStatus401 |
error401() |
static HttpStatus.HttpStatus403 |
error403() |
static HttpStatus.HttpStatus404 |
error404() |
static HttpStatus.HttpStatus405 |
error405() |
static HttpStatus.HttpStatus408 |
error408() |
static HttpStatus.HttpStatus409 |
error409() |
static HttpStatus.HttpStatus500 |
error500() |
static HttpStatus.HttpStatus503 |
error503() |
boolean |
isError()
Returns
true is status is error. |
boolean |
isSuccess()
Returns
true is status is successful. |
java.lang.String |
message()
Returns status message.
|
static HttpStatus |
of(int status,
java.lang.String message) |
static HttpStatus |
ok() |
static HttpStatus.Redirection |
redirection() |
int |
status()
Returns status code.
|
public HttpStatus(int status, java.lang.String message)
public HttpStatus(int status)
public boolean isError()
true
is status is error.public boolean isSuccess()
true
is status is successful.public int status()
public java.lang.String message()
public static HttpStatus of(int status, java.lang.String message)
public static HttpStatus ok()
public static HttpStatus.Redirection redirection()
public static HttpStatus.HttpStatus400 error400()
public static HttpStatus.HttpStatus401 error401()
public static HttpStatus.HttpStatus403 error403()
public static HttpStatus.HttpStatus404 error404()
public static HttpStatus.HttpStatus405 error405()
public static HttpStatus.HttpStatus408 error408()
public static HttpStatus.HttpStatus409 error409()
public static HttpStatus.HttpStatus500 error500()
public static HttpStatus.HttpStatus503 error503()
Copyright © 2003-present Jodd Team