-
public class HttpStatus.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final HttpStatusSuccessprivate final HttpStatusBadRequestprivate final HttpStatusUnauthorizedprivate final HttpStatusForbiddenprivate final HttpStatusNotFoundprivate final HttpStatusMethodNotAllowedprivate final HttpStatusInternalServerErrorpublic final static HttpStatus.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final HttpStatusgetSuccess()final HttpStatusgetBadRequest()(400) The server cannot or will not process the request due to an apparent client error. final HttpStatusgetUnauthorized()(401) Authentication is required and has failed or has not yet been provided. final HttpStatusgetForbidden()(403) The server refuses the action, probably because we don't have the necessary permissions. final HttpStatusgetNotFound()(404) The requested resource could not be found. final HttpStatusgetMethodNotAllowed()(405) Method not allowed. final HttpStatusgetInternalServerError()(500) Internal Server Error -
-
Method Detail
-
getSuccess
final HttpStatus getSuccess()
-
getBadRequest
final HttpStatus getBadRequest()
(400) The server cannot or will not process the request due to an apparent client error.
-
getUnauthorized
final HttpStatus getUnauthorized()
(401) Authentication is required and has failed or has not yet been provided.
-
getForbidden
final HttpStatus getForbidden()
(403) The server refuses the action, probably because we don't have the necessary permissions.
-
getNotFound
final HttpStatus getNotFound()
(404) The requested resource could not be found.
-
getMethodNotAllowed
final HttpStatus getMethodNotAllowed()
(405) Method not allowed.
-
getInternalServerError
final HttpStatus getInternalServerError()
(500) Internal Server Error
-
-
-
-