Package org.apache.juneau.http
Class HttpResponses
java.lang.Object
org.apache.juneau.http.HttpResponses
Standard predefined HTTP responses.
See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AcceptedA synonym forAccepted.INSTANCE.static final AlreadyReportedA synonym forAlreadyReported.INSTANCE.static final BadRequestA synonym forBadRequest.INSTANCE.static final ConflictA synonym forConflict.INSTANCE.static final ContinueA synonym forContinue.INSTANCE.static final CreatedA synonym forCreated.INSTANCE.static final EarlyHintsA synonym forEarlyHints.INSTANCE.static final ExpectationFailedA synonym forExpectationFailed.INSTANCE.static final FailedDependencyA synonym forFailedDependency.INSTANCE.static final ForbiddenA synonym forForbidden.INSTANCE.static final FoundA synonym forFound.INSTANCE.static final GoneA synonym forGone.INSTANCE.static final HttpVersionNotSupportedA synonym forHttpVersionNotSupported.INSTANCE.static final IMUsedA synonym forIMUsed.INSTANCE.static final InsufficientStorageA synonym forInsufficientStorage.INSTANCE.static final InternalServerErrorA synonym forInternalServerError.INSTANCE.static final LengthRequiredA synonym forLengthRequired.INSTANCE.static final LockedA synonym forLocked.INSTANCE.static final LoopDetectedA synonym forLoopDetected.INSTANCE.static final MethodNotAllowedA synonym forMethodNotAllowed.INSTANCE.static final MisdirectedRequestA synonym forMisdirectedRequest.INSTANCE.static final MovedPermanentlyA synonym forMovedPermanently.INSTANCE.static final MultiStatusA synonym forMultiStatus.INSTANCE.static final MultipleChoicesA synonym forMultipleChoices.INSTANCE.static final NetworkAuthenticationRequiredA synonym forNetworkAuthenticationRequired.INSTANCE.static final NoContentA synonym forNoContent.INSTANCE.static final NonAuthoritiveInformationA synonym forNonAuthoritiveInformation.INSTANCE.static final NotAcceptableA synonym forNotAcceptable.INSTANCE.static final NotExtendedA synonym forNotExtended.INSTANCE.static final NotFoundA synonym forNotFound.INSTANCE.static final NotImplementedA synonym forNotImplemented.INSTANCE.static final NotModifiedA synonym forNotModified.INSTANCE.static final OkA synonym forOk.INSTANCE.static final PartialContentA synonym forPartialContent.INSTANCE.static final PayloadTooLargeA synonym forPayloadTooLarge.INSTANCE.static final PermanentRedirectA synonym forPermanentRedirect.INSTANCE.static final PreconditionFailedA synonym forPreconditionFailed.INSTANCE.static final PreconditionRequiredA synonym forPreconditionRequired.INSTANCE.static final ProcessingA synonym forProcessing.INSTANCE.static final RangeNotSatisfiableA synonym forRangeNotSatisfiable.INSTANCE.static final RequestHeaderFieldsTooLargeA synonym forRequestHeaderFieldsTooLarge.INSTANCE.static final ResetContentA synonym forResetContent.INSTANCE.static final SeeOtherA synonym forSeeOther.INSTANCE.static final ServiceUnavailableA synonym forServiceUnavailable.INSTANCE.static final SwitchingProtocolsA synonym forSwitchingProtocols.INSTANCE.static final TemporaryRedirectA synonym forTemporaryRedirect.INSTANCE.static final TooManyRequestsA synonym forTooManyRequests.INSTANCE.static final UnauthorizedA synonym forUnauthorized.INSTANCE.static final UnavailableForLegalReasonsA synonym forUnavailableForLegalReasons.INSTANCE.static final UnprocessableEntityA synonym forUnprocessableEntity.INSTANCE.static final UnsupportedMediaTypeA synonym forUnsupportedMediaType.INSTANCE.static final UpgradeRequiredA synonym forUpgradeRequired.INSTANCE.static final UriTooLongA synonym forUriTooLong.INSTANCE.static final UseProxyA synonym forUseProxy.INSTANCE.static final VariantAlsoNegotiatesA synonym forVariantAlsoNegotiates.INSTANCE. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final ContinueA shortcut for callingContinue().static final Acceptedaccepted()A shortcut for callingAccepted().static final AlreadyReportedA shortcut for callingAlreadyReported().static final BadRequestA shortcut for callingBadRequest().static final Conflictconflict()A shortcut for callingConflict().static final Createdcreated()A shortcut for callingCreated().static final EarlyHintsA shortcut for callingEarlyHints().static final ExpectationFailedA shortcut for callingExpectationFailed().static final FailedDependencyA shortcut for callingFailedDependency().static final ForbiddenA shortcut for callingForbidden().static final FoundA shortcut for callingFound().static final Gonegone()A shortcut for callingGone().static final BasicHttpExceptionA shortcut for callingBasicHttpException().static final HttpVersionNotSupportedA shortcut for callingHttpVersionNotSupported().static final IMUsedimUsed()A shortcut for callingIMUsed().static final InsufficientStorageA shortcut for callingInsufficientStorage().static final InternalServerErrorA shortcut for callingInternalServerError().static final LengthRequiredA shortcut for callingLengthRequired().static final Lockedlocked()A shortcut for callingLocked().static final LoopDetectedA shortcut for callingLoopDetected().static final MethodNotAllowedA shortcut for callingMethodNotAllowed().static final MisdirectedRequestA shortcut for callingMisdirectedRequest().static final MovedPermanentlymovedPermanently(String location) A shortcut for callingMovedPermanently().static final MultipleChoicesA shortcut for callingMovedPermanently().static final MultiStatusA shortcut for callingMultiStatus().static final NetworkAuthenticationRequiredA shortcut for callingNetworkAuthenticationRequired().static final NoContentA shortcut for callingNoContent().static final NonAuthoritiveInformationA shortcut for callingNonAuthoritiveInformation().static final NotAcceptableA shortcut for callingNotAcceptable().static final NotExtendedA shortcut for callingNotExtended().static final NotFoundnotFound()A shortcut for callingNotFound().static final NotImplementedA shortcut for callingNotImplemented().static final NotModifiedA shortcut for callingNotModified().static final Okok()A shortcut for callingOk().static final PartialContentA shortcut for callingPartialContent().static final PayloadTooLargeA shortcut for callingPayloadTooLarge().static final PermanentRedirectpermanentRedirect(String location) A shortcut for callingPermanentRedirect().static final PreconditionFailedA shortcut for callingPreconditionFailed().static final PreconditionRequiredA shortcut for callingPreconditionRequired().static final ProcessingA shortcut for callingProcessing().static final RangeNotSatisfiableA shortcut for callingRangeNotSatisfiable().static final RequestHeaderFieldsTooLargeA shortcut for callingRequestHeaderFieldsTooLarge().static final ResetContentA shortcut for callingResetContent().static final SeeOtherA shortcut for callingSeeOther().static final ServiceUnavailableA shortcut for callingServiceUnavailable().static final SwitchingProtocolsA shortcut for callingSwitchingProtocols().static final TemporaryRedirecttemporaryRedirect(String location) A shortcut for callingTemporaryRedirect().static final TooManyRequestsA shortcut for callingTooManyRequests().static final UnauthorizedA shortcut for callingUnauthorized().static final UnavailableForLegalReasonsA shortcut for callingUnavailableForLegalReasons().static final UnprocessableEntityA shortcut for callingUnprocessableEntity().static final UnsupportedMediaTypeA shortcut for callingUnsupportedMediaType().static final UpgradeRequiredA shortcut for callingUpgradeRequired().static final UriTooLongA shortcut for callingUriTooLong().static final UseProxyuseProxy()A shortcut for callingUseProxy().static final VariantAlsoNegotiatesA 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.
-