BadRequestException
open class BadRequestException(message: String, cause: Throwable?) : Exception
Content copied to clipboard
Base exception to indicate that the request is not correct due to wrong/missing request parameters, body content or header values. Throwing this exception in a handler will lead to 400 Bad Request response unless a custom io.ktor.plugins.StatusPages handler registered.