Skip to content

Glossary: Kotlin Beyond the Basics

BadRequestException

The exception Ktor's `call.receive` throws when a request body isn't valid for the expected class. Catch it and answer 400 Bad Request.

Where the book teaches it

Related terms

status codeStatusPagescall (Ktor)