Interface ErrorStatus

All Known Implementing Classes:
ErrorStatuses

public interface ErrorStatus
An ErrorStatus is used by ServiceException to identify certain error types. The error type is defined by an internal error code (getCodeString()). It also suggests a mapping for the well-known status codes defined by the HTTP protocol (getHttpStatus()).
  • Method Details

    • getCodeString

      String getCodeString()
      Returns:
      The internal error code
    • getDescription

      default String getDescription()
      Returns:
      The error description
    • getHttpStatus

      int getHttpStatus()
      Returns:
      The suggested mapping to a HTTP status code