lucee.Componentcfboom.lang.Object
cfboom.http.HttpStatus
Enumeration of HTTP status codes.
The HTTP status code series can be retrieved via {@link #series()}.
Constructor Summary | |
---|---|
init(numeric value, string name, string reasonPhrase)
Internally used during HttpStatus. |
Method Summary | |
---|---|
HttpStatus
|
enum()
|
string
|
getReasonPhrase()
Return the reason phrase of this status code. |
boolean
|
is1xxInformational()
Whether this status code is in the HTTP series. |
boolean
|
is2xxSuccessful()
Whether this status code is in the HTTP series. |
boolean
|
is3xxRedirection()
Whether this status code is in the HTTP series. |
boolean
|
is4xxClientError()
Whether this status code is in the HTTP series. |
boolean
|
is5xxServerError()
Whether this status code is in the HTTP series. |
string
|
name()
Return the value name of this status code. |
string
|
toString()
|
numeric
|
value()
Return the integer value of this status code. |
HttpStatus
|
valueOf(numeric statusCode)
Return the enum constant of this type with the specified numeric value. |
struct
|
values()
Return the enum values. |
Methods inherited from class cfboom.lang.Object |
---|
$equals, getComponentName, getIdentityHashCode, getIdentityString, getMeta, hashCode |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Internally used during HttpStatus.enum().
value
name
reasonPhrase
Method Detail |
---|
Return the reason phrase of this status code.
Whether this status code is in the HTTP series {@link org.springframework.http.HttpStatus.Series#INFORMATIONAL}. This is a shortcut for checking the value of {@link #series()}.
Whether this status code is in the HTTP series {@link org.springframework.http.HttpStatus.Series#SUCCESSFUL}. This is a shortcut for checking the value of {@link #series()}.
Whether this status code is in the HTTP series {@link org.springframework.http.HttpStatus.Series#REDIRECTION}. This is a shortcut for checking the value of {@link #series()}.
Whether this status code is in the HTTP series {@link org.springframework.http.HttpStatus.Series#CLIENT_ERROR}. This is a shortcut for checking the value of {@link #series()}.
Whether this status code is in the HTTP series {@link org.springframework.http.HttpStatus.Series#SERVER_ERROR}. This is a shortcut for checking the value of {@link #series()}.
Return the value name of this status code.
toString
in class
cfboom.lang.Object
Return the integer value of this status code.
Return the enum constant of this type with the specified numeric value.
statusCode
Return the enum values.