class Kemal::Exceptions::BadRequest

Overview

Raised by ParamParser when the framework cannot parse the request body (broken JSON, unparseable multipart). Rendered as 400. Only wraps failures from Kemal's own body parsing, so a parse error inside handler code keeps its original class and 500 status.

Defined in:

kemal/helpers/exceptions.cr

Constructors

Constructor Detail

def self.new(message : String | Nil = nil, cause : Exception | Nil = nil) #

[View source]