Class HttpException

Object
akka.javasdk.http.HttpException

public final class HttpException extends Object
  • Method Details

    • badRequest

      public static RuntimeException badRequest()
    • badRequest

      public static RuntimeException badRequest(String responseText)
    • notFound

      public static RuntimeException notFound()
    • forbidden

      public static RuntimeException forbidden()
    • forbidden

      public static RuntimeException forbidden(String responseText)
    • unauthorized

      public static RuntimeException unauthorized()
    • unauthorized

      public static RuntimeException unauthorized(String responseText)
    • notImplemented

      public static RuntimeException notImplemented()
    • error

      public static RuntimeException error(akka.http.javadsl.model.StatusCode statusCode)
      Returns:
      An exception with an arbitrary HTTP status code. Note: a large list of predefined status codes can be found in StatusCodes
    • error

      public static RuntimeException error(akka.http.javadsl.model.StatusCode statusCode, String responseText)
      Returns:
      An exception with an arbitrary HTTP status code. Note: a large list of predefined status codes can be found in StatusCodes