Package org.apache.juneau.http
Class HttpResponses
java.lang.Object
org.apache.juneau.http.HttpResponses
Standard predefined HTTP responses.
See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Accepted
A synonym forAccepted.INSTANCE
.static final AlreadyReported
A synonym forAlreadyReported.INSTANCE
.static final BadRequest
A synonym forBadRequest.INSTANCE
.static final Conflict
A synonym forConflict.INSTANCE
.static final Continue
A synonym forContinue.INSTANCE
.static final Created
A synonym forCreated.INSTANCE
.static final EarlyHints
A synonym forEarlyHints.INSTANCE
.static final ExpectationFailed
A synonym forExpectationFailed.INSTANCE
.static final FailedDependency
A synonym forFailedDependency.INSTANCE
.static final Forbidden
A synonym forForbidden.INSTANCE
.static final Found
A synonym forFound.INSTANCE
.static final Gone
A synonym forGone.INSTANCE
.static final HttpVersionNotSupported
A synonym forHttpVersionNotSupported.INSTANCE
.static final IMUsed
A synonym forIMUsed.INSTANCE
.static final InsufficientStorage
A synonym forInsufficientStorage.INSTANCE
.static final InternalServerError
A synonym forInternalServerError.INSTANCE
.static final LengthRequired
A synonym forLengthRequired.INSTANCE
.static final Locked
A synonym forLocked.INSTANCE
.static final LoopDetected
A synonym forLoopDetected.INSTANCE
.static final MethodNotAllowed
A synonym forMethodNotAllowed.INSTANCE
.static final MisdirectedRequest
A synonym forMisdirectedRequest.INSTANCE
.static final MovedPermanently
A synonym forMovedPermanently.INSTANCE
.static final MultiStatus
A synonym forMultiStatus.INSTANCE
.static final MultipleChoices
A synonym forMultipleChoices.INSTANCE
.static final NetworkAuthenticationRequired
A synonym forNetworkAuthenticationRequired.INSTANCE
.static final NoContent
A synonym forNoContent.INSTANCE
.static final NonAuthoritiveInformation
A synonym forNonAuthoritiveInformation.INSTANCE
.static final NotAcceptable
A synonym forNotAcceptable.INSTANCE
.static final NotExtended
A synonym forNotExtended.INSTANCE
.static final NotFound
A synonym forNotFound.INSTANCE
.static final NotImplemented
A synonym forNotImplemented.INSTANCE
.static final NotModified
A synonym forNotModified.INSTANCE
.static final Ok
A synonym forOk.INSTANCE
.static final PartialContent
A synonym forPartialContent.INSTANCE
.static final PayloadTooLarge
A synonym forPayloadTooLarge.INSTANCE
.static final PermanentRedirect
A synonym forPermanentRedirect.INSTANCE
.static final PreconditionFailed
A synonym forPreconditionFailed.INSTANCE
.static final PreconditionRequired
A synonym forPreconditionRequired.INSTANCE
.static final Processing
A synonym forProcessing.INSTANCE
.static final RangeNotSatisfiable
A synonym forRangeNotSatisfiable.INSTANCE
.static final RequestHeaderFieldsTooLarge
A synonym forRequestHeaderFieldsTooLarge.INSTANCE
.static final ResetContent
A synonym forResetContent.INSTANCE
.static final SeeOther
A synonym forSeeOther.INSTANCE
.static final ServiceUnavailable
A synonym forServiceUnavailable.INSTANCE
.static final SwitchingProtocols
A synonym forSwitchingProtocols.INSTANCE
.static final TemporaryRedirect
A synonym forTemporaryRedirect.INSTANCE
.static final TooManyRequests
A synonym forTooManyRequests.INSTANCE
.static final Unauthorized
A synonym forUnauthorized.INSTANCE
.static final UnavailableForLegalReasons
A synonym forUnavailableForLegalReasons.INSTANCE
.static final UnprocessableEntity
A synonym forUnprocessableEntity.INSTANCE
.static final UnsupportedMediaType
A synonym forUnsupportedMediaType.INSTANCE
.static final UpgradeRequired
A synonym forUpgradeRequired.INSTANCE
.static final UriTooLong
A synonym forUriTooLong.INSTANCE
.static final UseProxy
A synonym forUseProxy.INSTANCE
.static final VariantAlsoNegotiates
A synonym forVariantAlsoNegotiates.INSTANCE
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final Continue
A shortcut for callingContinue()
.static final Accepted
accepted()
A shortcut for callingAccepted()
.static final AlreadyReported
A shortcut for callingAlreadyReported()
.static final BadRequest
A shortcut for callingBadRequest()
.static final Conflict
conflict()
A shortcut for callingConflict()
.static final Created
created()
A shortcut for callingCreated()
.static final EarlyHints
A shortcut for callingEarlyHints()
.static final ExpectationFailed
A shortcut for callingExpectationFailed()
.static final FailedDependency
A shortcut for callingFailedDependency()
.static final Forbidden
A shortcut for callingForbidden()
.static final Found
A shortcut for callingFound()
.static final Gone
gone()
A shortcut for callingGone()
.static final BasicHttpException
A shortcut for callingBasicHttpException()
.static final HttpVersionNotSupported
A shortcut for callingHttpVersionNotSupported()
.static final IMUsed
imUsed()
A shortcut for callingIMUsed()
.static final InsufficientStorage
A shortcut for callingInsufficientStorage()
.static final InternalServerError
A shortcut for callingInternalServerError()
.static final LengthRequired
A shortcut for callingLengthRequired()
.static final Locked
locked()
A shortcut for callingLocked()
.static final LoopDetected
A shortcut for callingLoopDetected()
.static final MethodNotAllowed
A shortcut for callingMethodNotAllowed()
.static final MisdirectedRequest
A shortcut for callingMisdirectedRequest()
.static final MovedPermanently
movedPermanently
(String location) A shortcut for callingMovedPermanently()
.static final MultipleChoices
A shortcut for callingMovedPermanently()
.static final MultiStatus
A shortcut for callingMultiStatus()
.static final NetworkAuthenticationRequired
A shortcut for callingNetworkAuthenticationRequired()
.static final NoContent
A shortcut for callingNoContent()
.static final NonAuthoritiveInformation
A shortcut for callingNonAuthoritiveInformation()
.static final NotAcceptable
A shortcut for callingNotAcceptable()
.static final NotExtended
A shortcut for callingNotExtended()
.static final NotFound
notFound()
A shortcut for callingNotFound()
.static final NotImplemented
A shortcut for callingNotImplemented()
.static final NotModified
A shortcut for callingNotModified()
.static final Ok
ok()
A shortcut for callingOk()
.static final PartialContent
A shortcut for callingPartialContent()
.static final PayloadTooLarge
A shortcut for callingPayloadTooLarge()
.static final PermanentRedirect
permanentRedirect
(String location) A shortcut for callingPermanentRedirect()
.static final PreconditionFailed
A shortcut for callingPreconditionFailed()
.static final PreconditionRequired
A shortcut for callingPreconditionRequired()
.static final Processing
A shortcut for callingProcessing()
.static final RangeNotSatisfiable
A shortcut for callingRangeNotSatisfiable()
.static final RequestHeaderFieldsTooLarge
A shortcut for callingRequestHeaderFieldsTooLarge()
.static final ResetContent
A shortcut for callingResetContent()
.static final SeeOther
A shortcut for callingSeeOther()
.static final ServiceUnavailable
A shortcut for callingServiceUnavailable()
.static final SwitchingProtocols
A shortcut for callingSwitchingProtocols()
.static final TemporaryRedirect
temporaryRedirect
(String location) A shortcut for callingTemporaryRedirect()
.static final TooManyRequests
A shortcut for callingTooManyRequests()
.static final Unauthorized
A shortcut for callingUnauthorized()
.static final UnavailableForLegalReasons
A shortcut for callingUnavailableForLegalReasons()
.static final UnprocessableEntity
A shortcut for callingUnprocessableEntity()
.static final UnsupportedMediaType
A shortcut for callingUnsupportedMediaType()
.static final UpgradeRequired
A shortcut for callingUpgradeRequired()
.static final UriTooLong
A shortcut for callingUriTooLong()
.static final UseProxy
useProxy()
A shortcut for callingUseProxy()
.static final VariantAlsoNegotiates
A shortcut for callingVariantAlsoNegotiates()
.
-
Field Details
-
ACCEPTED
A synonym forAccepted.INSTANCE
. -
ALREADY_REPORTED
A synonym forAlreadyReported.INSTANCE
. -
BAD_REQUEST
A synonym forBadRequest.INSTANCE
. -
CONFLICT
A synonym forConflict.INSTANCE
. -
CONTINUE
A synonym forContinue.INSTANCE
. -
CREATED
A synonym forCreated.INSTANCE
. -
EARLY_HINTS
A synonym forEarlyHints.INSTANCE
. -
EXPECTATION_FAILED
A synonym forExpectationFailed.INSTANCE
. -
FAILED_DEPENDENCY
A synonym forFailedDependency.INSTANCE
. -
FORBIDDEN
A synonym forForbidden.INSTANCE
. -
FOUND
A synonym forFound.INSTANCE
. -
GONE
A synonym forGone.INSTANCE
. -
HTTP_VERSION_NOT_SUPPORTED
A synonym forHttpVersionNotSupported.INSTANCE
. -
IM_USED
A synonym forIMUsed.INSTANCE
. -
INSUFFICIENT_STORAGE
A synonym forInsufficientStorage.INSTANCE
. -
INTERNAL_SERVER_ERROR
A synonym forInternalServerError.INSTANCE
. -
LENGTH_REQUIRED
A synonym forLengthRequired.INSTANCE
. -
LOCKED
A synonym forLocked.INSTANCE
. -
LOOP_DETECTED
A synonym forLoopDetected.INSTANCE
. -
METHOD_NOT_ALLOWED
A synonym forMethodNotAllowed.INSTANCE
. -
MISDIRECTED_REQUEST
A synonym forMisdirectedRequest.INSTANCE
. -
MOVED_PERMANENTLY
A synonym forMovedPermanently.INSTANCE
. -
MULTI_STATUS
A synonym forMultiStatus.INSTANCE
. -
MULTIPLE_CHOICES
A synonym forMultipleChoices.INSTANCE
. -
NETWORK_AUTHENTICATION_REQUIRED
A synonym forNetworkAuthenticationRequired.INSTANCE
. -
NO_CONTENT
A synonym forNoContent.INSTANCE
. -
NON_AUTHORATIVE_INFORMATION
A synonym forNonAuthoritiveInformation.INSTANCE
. -
NOT_ACCEPTABLE
A synonym forNotAcceptable.INSTANCE
. -
NOT_EXTENDED
A synonym forNotExtended.INSTANCE
. -
NOT_FOUND
A synonym forNotFound.INSTANCE
. -
NOT_IMPLEMENTED
A synonym forNotImplemented.INSTANCE
. -
NOT_MODIFIED
A synonym forNotModified.INSTANCE
. -
OK
A synonym forOk.INSTANCE
. -
PARTIAL_CONTENT
A synonym forPartialContent.INSTANCE
. -
PAYLOAD_TOO_LARGE
A synonym forPayloadTooLarge.INSTANCE
. -
PERMANENT_REDIRECT
A synonym forPermanentRedirect.INSTANCE
. -
PRECONDITION_FAILED
A synonym forPreconditionFailed.INSTANCE
. -
PRECONDITION_REQUIRED
A synonym forPreconditionRequired.INSTANCE
. -
PROCESSING
A synonym forProcessing.INSTANCE
. -
RANGE_NOT_SATISFIABLE
A synonym forRangeNotSatisfiable.INSTANCE
. -
REQUEST_HEADER_FIELDS_TOO_LARGE
A synonym forRequestHeaderFieldsTooLarge.INSTANCE
. -
RESET_CONTENT
A synonym forResetContent.INSTANCE
. -
SEE_OTHER
A synonym forSeeOther.INSTANCE
. -
SERVICE_UNAVAILABLE
A synonym forServiceUnavailable.INSTANCE
. -
SWITCHING_PROTOCOLS
A synonym forSwitchingProtocols.INSTANCE
. -
TEMPORARY_REDIRECT
A synonym forTemporaryRedirect.INSTANCE
. -
TOO_MANY_REQUESTS
A synonym forTooManyRequests.INSTANCE
. -
UNAUTHORIZED
A synonym forUnauthorized.INSTANCE
. -
UNAVAILABLE_FOR_LEGAL_REASONS
A synonym forUnavailableForLegalReasons.INSTANCE
. -
UNPROCESSABLE_ENTITIY
A synonym forUnprocessableEntity.INSTANCE
. -
UNSUPPORTED_MEDIA_TYPE
A synonym forUnsupportedMediaType.INSTANCE
. -
UPGRADE_REQUIRED
A synonym forUpgradeRequired.INSTANCE
. -
URI_TOO_LONG
A synonym forUriTooLong.INSTANCE
. -
USE_PROXY
A synonym forUseProxy.INSTANCE
. -
VARIANT_ALSO_NEGOTIATES
A synonym forVariantAlsoNegotiates.INSTANCE
.
-
-
Constructor Details
-
HttpResponses
public HttpResponses()
-
-
Method Details
-
_continue
A shortcut for callingContinue()
.- Returns:
- A new bean.
-
accepted
A shortcut for callingAccepted()
.- Returns:
- A new bean.
-
alreadyReported
A shortcut for callingAlreadyReported()
.- Returns:
- A new bean.
-
badRequest
A shortcut for callingBadRequest()
.- Returns:
- A new bean builder.
-
conflict
A shortcut for callingConflict()
.- Returns:
- A new bean builder.
-
created
A shortcut for callingCreated()
.- Returns:
- A new bean.
-
earlyHints
A shortcut for callingEarlyHints()
.- Returns:
- A new bean.
-
expectationFailed
A shortcut for callingExpectationFailed()
.- Returns:
- A new bean builder.
-
failedDependency
A shortcut for callingFailedDependency()
.- Returns:
- A new bean builder.
-
forbidden
A shortcut for callingForbidden()
.- Returns:
- A new bean builder.
-
found
A shortcut for callingFound()
.- Parameters:
location
- The value for the Location header.- Returns:
- A new bean.
-
gone
A shortcut for callingGone()
.- Returns:
- A new bean builder.
-
httpException
A shortcut for callingBasicHttpException()
.- Returns:
- A new bean builder.
-
httpVersionNotSupported
A shortcut for callingHttpVersionNotSupported()
.- Returns:
- A new bean builder.
-
imUsed
A shortcut for callingIMUsed()
.- Returns:
- A new bean.
-
insufficientStorage
A shortcut for callingInsufficientStorage()
.- Returns:
- A new bean builder.
-
internalServerError
A shortcut for callingInternalServerError()
.- Returns:
- A new bean builder.
-
lengthRequired
A shortcut for callingLengthRequired()
.- Returns:
- A new bean builder.
-
locked
A shortcut for callingLocked()
.- Returns:
- A new bean builder.
-
loopDetected
A shortcut for callingLoopDetected()
.- Returns:
- A new bean builder.
-
methodNotAllowed
A shortcut for callingMethodNotAllowed()
.- Returns:
- A new bean builder.
-
misdirectedRequest
A shortcut for callingMisdirectedRequest()
.- Returns:
- A new bean builder.
-
movedPermanently
A shortcut for callingMovedPermanently()
.- Parameters:
location
- The value for the Location header.- Returns:
- A new bean.
-
multipleChoices
A shortcut for callingMovedPermanently()
.- Returns:
- A new bean.
-
multiStatus
A shortcut for callingMultiStatus()
.- Returns:
- A new bean.
-
networkAuthenticationRequired
A shortcut for callingNetworkAuthenticationRequired()
.- Returns:
- A new bean builder.
-
noContent
A shortcut for callingNoContent()
.- Returns:
- A new bean.
-
nonAuthoritiveInformation
A shortcut for callingNonAuthoritiveInformation()
.- Returns:
- A new bean.
-
notAcceptable
A shortcut for callingNotAcceptable()
.- Returns:
- A new bean builder.
-
notExtended
A shortcut for callingNotExtended()
.- Returns:
- A new bean builder.
-
notFound
A shortcut for callingNotFound()
.- Returns:
- A new bean builder.
-
notImplemented
A shortcut for callingNotImplemented()
.- Returns:
- A new bean builder.
-
notModified
A shortcut for callingNotModified()
.- Returns:
- A new bean.
-
ok
A shortcut for callingOk()
.- Returns:
- A new bean.
-
partialContent
A shortcut for callingPartialContent()
.- Returns:
- A new bean.
-
payloadTooLarge
A shortcut for callingPayloadTooLarge()
.- Returns:
- A new bean builder.
-
permanentRedirect
A shortcut for callingPermanentRedirect()
.- Parameters:
location
- The value for the Location header.- Returns:
- A new bean.
-
preconditionFailed
A shortcut for callingPreconditionFailed()
.- Returns:
- A new bean builder.
-
preconditionRequired
A shortcut for callingPreconditionRequired()
.- Returns:
- A new bean builder.
-
processing
A shortcut for callingProcessing()
.- Returns:
- A new bean.
-
rangeNotSatisfiable
A shortcut for callingRangeNotSatisfiable()
.- Returns:
- A new bean builder.
-
requestHeaderFieldsTooLarge
A shortcut for callingRequestHeaderFieldsTooLarge()
.- Returns:
- A new bean builder.
-
resetContent
A shortcut for callingResetContent()
.- Returns:
- A new bean.
-
seeOther
A shortcut for callingSeeOther()
.- Parameters:
location
- The value for the Location header.- Returns:
- A new bean.
-
switchingProtocols
A shortcut for callingSwitchingProtocols()
.- Returns:
- A new bean.
-
temporaryRedirect
A shortcut for callingTemporaryRedirect()
.- Parameters:
location
- The value for the Location header.- Returns:
- A new bean.
-
tooManyRequests
A shortcut for callingTooManyRequests()
.- Returns:
- A new bean builder.
-
unauthorized
A shortcut for callingUnauthorized()
.- Returns:
- A new bean builder.
-
unprocessableEntity
A shortcut for callingUnprocessableEntity()
.- Returns:
- A new bean builder.
-
unsupportedMediaType
A shortcut for callingUnsupportedMediaType()
.- Returns:
- A new bean builder.
-
upgradeRequired
A shortcut for callingUpgradeRequired()
.- Returns:
- A new bean builder.
-
uriTooLong
A shortcut for callingUriTooLong()
.- Returns:
- A new bean builder.
-
useProxy
A shortcut for callingUseProxy()
.- Returns:
- A new bean.
-
variantAlsoNegotiates
A shortcut for callingVariantAlsoNegotiates()
.- Returns:
- A new bean builder.
-