Open Kilda Java Documentation
org.openkilda.constants.HttpError Enum Reference

Public Member Functions

HttpStatus getHttpStatus ()
 
Integer getCode ()
 
String getMessage ()
 
String getAuxilaryMessage ()
 

Public Attributes

 UNAUTHORIZED
 
 FORBIDDEN
 
 METHOD_NOT_ALLOWED
 
 METHOD_NOT_FOUND
 
 INTERNAL_ERROR
 
 GATEWAY_TIMEOUT_ERROR
 
 BAD_GATEWAY_ERROR
 
 PAYLOAD_NOT_VALID_JSON
 
 BAD_REQUEST
 
 OBJECT_NOT_FOUND
 
 STATUS_CONFLICT
 
 UNPROCESSABLE_ENTITY
 
 PRECONDITION_FAILED
 
 RESPONSE_NOT_FOUND
 
 NO_CONTENT
 

Detailed Description

The Enum HttpError.

Definition at line 10 of file HttpError.java.

Member Function Documentation

◆ getAuxilaryMessage()

String org.openkilda.constants.HttpError.getAuxilaryMessage ( )

Gets the auxilary message.

Returns
the auxilary message

Definition at line 110 of file HttpError.java.

◆ getCode()

Integer org.openkilda.constants.HttpError.getCode ( )

Gets the code.

Returns
the code

Definition at line 92 of file HttpError.java.

◆ getHttpStatus()

HttpStatus org.openkilda.constants.HttpError.getHttpStatus ( )

Gets the http status.

Returns
the http status

Definition at line 83 of file HttpError.java.

◆ getMessage()

String org.openkilda.constants.HttpError.getMessage ( )

Gets the message.

Returns
the message

Definition at line 101 of file HttpError.java.

Member Data Documentation

◆ BAD_GATEWAY_ERROR

org.openkilda.constants.HttpError.BAD_GATEWAY_ERROR
Initial value:
=(HttpStatus.BAD_GATEWAY, Integer.parseInt(MessageUtil
.getCode("0502")), MessageUtil.getAuxilaryMessage("0502"),
MessageUtil.getMessage("0502"))

Definition at line 30 of file HttpError.java.

◆ BAD_REQUEST

org.openkilda.constants.HttpError.BAD_REQUEST
Initial value:
=(HttpStatus.BAD_REQUEST, Integer.parseInt(MessageUtil.getCode("0400")),
MessageUtil.getAuxilaryMessage("0400"), MessageUtil
.getMessage("0400"))

Definition at line 36 of file HttpError.java.

◆ FORBIDDEN

org.openkilda.constants.HttpError.FORBIDDEN
Initial value:
=(HttpStatus.FORBIDDEN, Integer.parseInt(MessageUtil.getCode("0403")),
MessageUtil.getAuxilaryMessage("0403"), MessageUtil
.getMessage("0403"))

Definition at line 15 of file HttpError.java.

◆ GATEWAY_TIMEOUT_ERROR

org.openkilda.constants.HttpError.GATEWAY_TIMEOUT_ERROR
Initial value:
=(HttpStatus.GATEWAY_TIMEOUT, Integer.parseInt(MessageUtil
.getCode("0504")), MessageUtil.getAuxilaryMessage("0504"),
MessageUtil.getMessage("0504"))

Definition at line 27 of file HttpError.java.

◆ INTERNAL_ERROR

org.openkilda.constants.HttpError.INTERNAL_ERROR
Initial value:
=(HttpStatus.INTERNAL_SERVER_ERROR, Integer.parseInt(MessageUtil
.getCode("0500")), MessageUtil.getAuxilaryMessage("0500"),
MessageUtil.getMessage("0500"))

Definition at line 24 of file HttpError.java.

◆ METHOD_NOT_ALLOWED

org.openkilda.constants.HttpError.METHOD_NOT_ALLOWED
Initial value:
=(HttpStatus.METHOD_NOT_ALLOWED, Integer.parseInt(MessageUtil
.getCode("0405")), MessageUtil.getAuxilaryMessage("0405"),
MessageUtil.getMessage("0405"))

Definition at line 18 of file HttpError.java.

◆ METHOD_NOT_FOUND

org.openkilda.constants.HttpError.METHOD_NOT_FOUND
Initial value:
=(HttpStatus.NOT_FOUND,
Integer.parseInt(MessageUtil.getCode("0404")), MessageUtil
.getAuxilaryMessage("0404"), MessageUtil.getMessage("0404"))

Definition at line 21 of file HttpError.java.

◆ NO_CONTENT

org.openkilda.constants.HttpError.NO_CONTENT
Initial value:
=(HttpStatus.NO_CONTENT, Integer.parseInt(MessageUtil
.getCode("0204")), MessageUtil.getAuxilaryMessage("0204"),
MessageUtil.getMessage("0204"))

Definition at line 54 of file HttpError.java.

◆ OBJECT_NOT_FOUND

org.openkilda.constants.HttpError.OBJECT_NOT_FOUND
Initial value:
=(HttpStatus.NOT_FOUND,
Integer.parseInt(MessageUtil.getCode("0002")), MessageUtil
.getAuxilaryMessage("0002"), MessageUtil.getMessage("0002"))

Definition at line 39 of file HttpError.java.

◆ PAYLOAD_NOT_VALID_JSON

org.openkilda.constants.HttpError.PAYLOAD_NOT_VALID_JSON
Initial value:
=(HttpStatus.BAD_REQUEST, Integer.parseInt(MessageUtil
.getCode("0406")), MessageUtil.getAuxilaryMessage("0406"),
MessageUtil.getMessage("0406"))

Definition at line 33 of file HttpError.java.

◆ PRECONDITION_FAILED

org.openkilda.constants.HttpError.PRECONDITION_FAILED
Initial value:
=(HttpStatus.PRECONDITION_FAILED, Integer.parseInt(MessageUtil
.getCode("0412")), MessageUtil.getAuxilaryMessage("0412"),
MessageUtil.getMessage("0412"))

Definition at line 48 of file HttpError.java.

◆ RESPONSE_NOT_FOUND

org.openkilda.constants.HttpError.RESPONSE_NOT_FOUND
Initial value:
=(HttpStatus.NOT_FOUND, Integer.parseInt(MessageUtil
.getCode("0004")), MessageUtil.getAuxilaryMessage("0004"),
MessageUtil.getMessage("0004"))

Definition at line 51 of file HttpError.java.

◆ STATUS_CONFLICT

org.openkilda.constants.HttpError.STATUS_CONFLICT
Initial value:
=(HttpStatus.CONFLICT, Integer.parseInt(MessageUtil.getCode("0001")),
MessageUtil.getAuxilaryMessage("0001"), MessageUtil
.getMessage("0001"))

Definition at line 42 of file HttpError.java.

◆ UNAUTHORIZED

org.openkilda.constants.HttpError.UNAUTHORIZED
Initial value:
=(HttpStatus.UNAUTHORIZED, Integer.parseInt(MessageUtil.getCode("0401")),
MessageUtil.getAuxilaryMessage("0401"), MessageUtil
.getMessage("0401"))

Definition at line 12 of file HttpError.java.

◆ UNPROCESSABLE_ENTITY

org.openkilda.constants.HttpError.UNPROCESSABLE_ENTITY
Initial value:
=(HttpStatus.UNPROCESSABLE_ENTITY, Integer.parseInt(MessageUtil
.getCode("0003")), MessageUtil.getAuxilaryMessage("0003"),
MessageUtil.getMessage("0003"))

Definition at line 45 of file HttpError.java.


The documentation for this enum was generated from the following file: