| Package | Description |
|---|---|
| org.osgl.mvc | |
| org.osgl.mvc.result |
| Modifier and Type | Method and Description |
|---|---|
Void |
ErrorPageRenderer.apply(org.osgl.http.H.Request request,
org.osgl.http.H.Response response,
ErrorResult error) |
protected String |
ErrorPageRenderer.renderTemplate(ErrorResult error,
org.osgl.http.H.Format format) |
| Modifier and Type | Class and Description |
|---|---|
class |
BadGateway
The server was acting as a gateway or proxy and received an invalid response from the upstream server.
|
class |
BadRequest
Indicate a client error
|
class |
Conflict
Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.
|
class |
ExpectationFailed
The server cannot meet the requirements of the Expect request-header field.
|
class |
Forbidden
HTTP 403 Forbidden
|
class |
GatewayTimeout
The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
|
class |
Gone
Indicates that the resource requested is no longer available and will not be available again.
|
class |
InternalServerError
Indicate an internal server error and set 500 status on response
|
class |
MethodNotAllowed
Indicate a 405 Method not allowed response
|
class |
NotAcceptable
The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
|
class |
NotFound
Indicate a 404 Not found response
|
class |
NotImplemented
Indicate a 501 Not implemented response
|
class |
PaymentRequired
Reserved for future use.
|
class |
PreconditionRequired
The origin server requires the request to be conditional.
|
class |
RequestTimeout
The server timed out waiting for the request.
|
class |
ServerError
Deprecated.
|
class |
ServiceUnavailable
The server is currently unavailable (because it is overloaded or down for maintenance).
|
class |
TooManyRequests
The user has sent too many requests in a given amount of time.
|
class |
Unauthorized
HTTP 401 Unauthorized,
|
class |
UnavailableForLegalReasons
A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.
|
class |
UnsupportedMediaType
The request entity has a media type which the server or resource does not support.
|
| Modifier and Type | Method and Description |
|---|---|
ErrorResult |
ErrorResult.attach(Object attachment) |
ErrorResult |
ErrorResult.errorCode(int errorCode) |
static ErrorResult |
ErrorResult.of(org.osgl.http.H.Status status) |
static ErrorResult |
ErrorResult.of(org.osgl.http.H.Status status,
int errorCode) |
static ErrorResult |
ErrorResult.of(org.osgl.http.H.Status status,
int errorCode,
String message,
Object... args) |
static ErrorResult |
ErrorResult.of(org.osgl.http.H.Status status,
int errorCode,
Throwable cause) |
static ErrorResult |
ErrorResult.of(org.osgl.http.H.Status status,
int errorCode,
Throwable cause,
String message,
Object... args) |
static ErrorResult |
ErrorResult.of(org.osgl.http.H.Status status,
String message,
Object... args) |
static ErrorResult |
ErrorResult.of(org.osgl.http.H.Status status,
Throwable cause,
String message,
Object... args) |
Copyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.