Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
e

Error

enum Error

Defined by scalive.HttpFormDecoder.Error. View source (scalive/transport/zio-http/src/scalive/HttpFormDecoder.scala:57-98)

Typed body, representation, CSRF, and validation rejection categories.

Methods2

code

def code: String

Stable machine-readable category code for logging or metrics.

Defined by scalive.HttpFormDecoder.Error.code. View source (scalive/transport/zio-http/src/scalive/HttpFormDecoder.scala:64-86)

toResponse

def toResponse(onValidation: FormErrors[?] => zio.http.Response): zio.http.Response

Maps size to 413, media type to 415, malformed input to 400, CSRF to 403, and delegates validation responses to onValidation.

Defined by scalive.HttpFormDecoder.Error.toResponse. View source (scalive/transport/zio-http/src/scalive/HttpFormDecoder.scala:91-97)