getParameterOrSendError

suspend fun ERROR CLASS: Symbol not found for ApplicationCall.getParameterOrSendError(field: String): MatchGroup?(source)

Retrieves a parameter value by field name from the request parameters. If the parameter is not present, responds with HttpStatusCode.BadRequest (400) and an error message.

Return

The parameter value, or null if not found (after sending error response)

Parameters

field

The name of the parameter to retrieve