Class ErrorTrait

All Implemented Interfaces:
FromSourceLocation, ToNode, ToShapeId, Trait

public final class ErrorTrait extends StringTrait
Indicates that a structure can be used as an error.
  • Field Details

    • ID

      public static final ShapeId ID
  • Constructor Details

  • Method Details

    • getDefaultHttpStatusCode

      public int getDefaultHttpStatusCode()
      Returns the recommended default HTTP status code of the error.
      Returns the default HTTP status code.
    • isClientError

      public boolean isClientError()
      Returns true if is a client error.
    • isServerError

      public boolean isServerError()
      Returns true if it is a server error.