BadRequestException

constructor(message: String, cause: Throwable? = null)(source)
constructor(error: ErrorObject?, cause: Throwable? = null)(source)
constructor(authenticationError: AuthenticationError)(source)
constructor(responseException: ResponseException)(source)


constructor(message: String, statusCode: Int? = null, reason: String? = null, cause: Throwable? = null)(source)

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.