Object HttpStatus.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final HttpStatus valueOf(Integer statusCode) Return the HttpStatus enum constant with the specified numeric value.
      final HttpStatus resolve(Integer statusCode) Resolve the given status code to an HttpStatus, if possible.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • valueOf

         final HttpStatus valueOf(Integer statusCode)

        Return the HttpStatus enum constant with the specified numeric value.

        Parameters:
        statusCode - the numeric value of the enum to be returned
        Returns:

        the enum constant with the specified numeric value

      • resolve

        @Nullable() final HttpStatus resolve(Integer statusCode)

        Resolve the given status code to an HttpStatus, if possible.

        Parameters:
        statusCode - the HTTP status code (potentially non-standard)
        Returns:

        the corresponding HttpStatus, or null if not found

        Since:

        5.0