Package akka.javasdk.http
Class HttpException
Object
akka.javasdk.http.HttpException
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeException
static RuntimeException
badRequest
(String responseText) static RuntimeException
error
(akka.http.javadsl.model.StatusCode statusCode) static RuntimeException
static RuntimeException
static RuntimeException
static RuntimeException
notFound()
static RuntimeException
static RuntimeException
static RuntimeException
unauthorized
(String responseText)
-
Method Details
-
badRequest
-
badRequest
-
notFound
-
forbidden
-
forbidden
-
unauthorized
-
unauthorized
-
notImplemented
-
error
- 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
-