BadRequestException
open class BadRequestException : 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.features.StatusPages handler registered.
Constructors
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.features.StatusPages handler registered. |
Extension Properties
Root cause of the Throwable. |
Inheritors
class MissingRequestParameterException : This exception is thrown when a required parameter with name parameterName is missing |
|
class ParameterConversionException : This exception is thrown when a required parameter with name parameterName couldn’t be converted to the type |