- Companion
- class
Type members
Classlikes
Default messages for DecodeResult.Failure s.
Default messages for DecodeResult.Failure s.
Default messages when the decode failure is due to a validation error.
Default messages when the decode failure is due to a validation error.
Value members
Concrete methods
The default implementation of the DecodeFailureHandler.
The default implementation of the DecodeFailureHandler.
A 400 (bad request) is returned if a query, header or body input can't be decoded (for any reason), or if decoding a path capture causes a validation error.
Otherwise (e.g. if the method, a path segment, or path capture is missing, there's a mismatch or a decode error), None
is returned,
which is a signal to try the next endpoint.
The error messages contain information about the source of the decode error, and optionally the validation error detail that caused the failure.
This is only used for failures that occur when decoding inputs, not for exceptions that happen when the server logic is invoked.
- Value Params
- badRequestOnPathErrorIfPathShapeMatches
Should a status 400 be returned if the shape of the path of the request matches, but decoding some path segment fails with a DecodeResult.Error.
- badRequestOnPathInvalidIfPathShapeMatches
Should a status 400 be returned if the shape of the path of the request matches, but decoding some path segment fails with a DecodeResult.InvalidValue.