## Uses of Class
org.apache.olingo.odata2.api.commons.HttpStatusCodes

- Packages that use HttpStatusCodes
  Package | Description
  --- | ---
  org.apache.olingo.odata2.api.commons | The commons package contains constants used in the HTTP and OData protocol.
  org.apache.olingo.odata2.api.exception | Exception Classes used in the OData library as well as the implementing application APPLICATION DEVELOPERS: Please use `ODataApplicationException` for custom exceptions.
  org.apache.olingo.odata2.api.processor | Data Processor A data processor implements all create, read, update and delete (CRUD) methods of an OData service.

- - ### Uses of HttpStatusCodes in org.apache.olingo.odata2.api.commons

    Methods in org.apache.olingo.odata2.api.commons that return HttpStatusCodes
    Modifier and Type | Method and Description
    --- | ---
    `static HttpStatusCodes` | HttpStatusCodes.`fromStatusCode(int statusCode)` Convert a numerical status code into the corresponding status enum object.
    `static HttpStatusCodes` | HttpStatusCodes.`valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static HttpStatusCodes[]` | HttpStatusCodes.`values()` Returns an array containing the constants of this enum type, in the order they are declared.

  - ### Uses of HttpStatusCodes in org.apache.olingo.odata2.api.exception

    Fields in org.apache.olingo.odata2.api.exception declared as HttpStatusCodes
    Modifier and Type | Field and Description
    --- | ---
    `protected HttpStatusCodes` | ODataHttpException.`httpStatus`

    Methods in org.apache.olingo.odata2.api.exception that return HttpStatusCodes
    Modifier and Type | Method and Description
    --- | ---
    `HttpStatusCodes` | ODataRuntimeApplicationException.`getHttpStatus()` Default HttpStatusCodes.INTERNAL_SERVER_ERROR
    `HttpStatusCodes` | ODataHttpException.`getHttpStatus()`
    `HttpStatusCodes` | ODataApplicationException.`getHttpStatus()` Default HttpStatusCodes.INTERNAL_SERVER_ERROR

    Constructors in org.apache.olingo.odata2.api.exception with parameters of type HttpStatusCodes
    Constructor and Description
    `ODataApplicationException(String message, Locale locale, HttpStatusCodes status)` Since this is a translated application exception locale must not be null.
    `ODataApplicationException(String message, Locale locale, HttpStatusCodes status, String errorCode)` Since this is a translated application exception locale must not be null.
    `ODataApplicationException(String message, Locale locale, HttpStatusCodes status, String errorCode, Throwable e)` Since this is a translated application exception locale must not be null.
    `ODataApplicationException(String message, Locale locale, HttpStatusCodes status, Throwable e)` Since this is a translated application exception locale must not be null.
    `ODataHttpException(MessageReference messageReference, HttpStatusCodes httpStatus)`
    `ODataHttpException(MessageReference messageReference, HttpStatusCodes httpStatus, String errorCode)`
    `ODataHttpException(MessageReference messageReference, Throwable cause, HttpStatusCodes httpStatus)`
    `ODataHttpException(MessageReference messageReference, Throwable cause, HttpStatusCodes httpStatus, String errorCode)`
    `ODataRuntimeApplicationException(String message, Locale locale, HttpStatusCodes status)` Since this is a translated application exception locale must not be null.
    `ODataRuntimeApplicationException(String message, Locale locale, HttpStatusCodes status, String errorCode)` Since this is a translated application exception locale must not be null.
    `ODataRuntimeApplicationException(String message, Locale locale, HttpStatusCodes status, String errorCode, Throwable e)` Since this is a translated application exception locale must not be null.
    `ODataRuntimeApplicationException(String message, Locale locale, HttpStatusCodes status, Throwable e)` Since this is a translated application exception locale must not be null.

  - ### Uses of HttpStatusCodes in org.apache.olingo.odata2.api.processor

    Methods in org.apache.olingo.odata2.api.processor that return HttpStatusCodes
    Modifier and Type | Method and Description
    --- | ---
    `HttpStatusCodes` | ODataErrorContext.`getHttpStatus()` Get the status code which will be returned in error response.
    `abstract HttpStatusCodes` | ODataResponse.`getStatus()`

    Methods in org.apache.olingo.odata2.api.processor with parameters of type HttpStatusCodes
    Modifier and Type | Method and Description
    --- | ---
    `void` | ODataErrorContext.`setHttpStatus(HttpStatusCodes status)` Set http status code that should be returned in error response.
    `static ODataResponse.ODataResponseBuilder` | ODataResponse.`status(HttpStatusCodes status)`
    `abstract ODataResponse.ODataResponseBuilder` | ODataResponse.ODataResponseBuilder.`status(HttpStatusCodes status)`

Copyright © 2013-2022 The Apache Software Foundation. All Rights Reserved.