BadRequestException

open class BadRequestException(message: String, cause: Throwable?) : Exception

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.

Constructors

Link copied to clipboard
fun BadRequestException(message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?

Inheritors

Link copied to clipboard
Link copied to clipboard