BadRequestException

fun BadRequestException(message: String, cause: Throwable? = null)
fun BadRequestException(error: ErrorObject?, cause: Throwable? = null)
fun BadRequestException(authenticationError: AuthenticationError)
fun BadRequestException(responseException: ResponseException)
fun BadRequestException(message: String, statusCode: Int? = null, reason: String? = null, cause: Throwable? = null)

Parameters

statusCode

The status code of the request, if this exception is thrown after the completion of an HTTP request.

reason

The reason for the failure, as a readable message.