Package com.yahoo.restapi
Class ErrorResponse
java.lang.Object
com.yahoo.container.jdisc.HttpResponse
com.yahoo.restapi.SlimeJsonResponse
com.yahoo.restapi.ErrorResponse
A HTTP JSON response containing an error code and a message
- Author:
- bratseth
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.yahoo.restapi.SlimeJsonResponse
slimeFields inherited from class com.yahoo.container.jdisc.HttpResponse
DEFAULT_CHARACTER_ENCODING, DEFAULT_MIME_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorResponsebadRequest(String message) static ErrorResponsestatic ErrorResponsestatic ErrorResponsegatewayTimeout(String message) static ErrorResponseinternalServerError(String message) static ErrorResponsemethodNotAllowed(String message) static ErrorResponsenotFoundError(String message) static ErrorResponseunauthorized(String message) Methods inherited from class com.yahoo.restapi.SlimeJsonResponse
getContentType, renderMethods inherited from class com.yahoo.container.jdisc.HttpResponse
complete, getCharacterEncoding, getJdiscResponse, getLogValues, getRequestType, getStatus, headers, maxPendingBytes, populateAccessLogEntry, setRequestType, setStatus
-
Constructor Details
-
ErrorResponse
-
-
Method Details
-
notFoundError
-
internalServerError
-
gatewayTimeout
-
badRequest
-
forbidden
-
unauthorized
-
methodNotAllowed
-
conflict
-