ErrorResponseConfig

zio.http.ErrorResponseConfig
See theErrorResponseConfig companion object
final case class ErrorResponseConfig(withErrorBody: Boolean = ..., withStackTrace: Boolean = ..., maxStackTraceDepth: Int = ..., errorFormat: ErrorFormat = ...)

Configuration for the response generation

Value parameters

errorFormat

the preferred format for the error response. If the context in which the response is created has access to an Accept header, the header will be used preferably to determine the format.

maxStackTraceDepth

maximum number of stack trace lines to include in the response body. Set to 0 to include all lines.

withErrorBody

if true, includes the error message in the response body

withStackTrace

if true, includes the stack trace in the response body

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product