api

http4k / org.http4k.format / JsonErrorResponseRenderer

JsonErrorResponseRenderer

class JsonErrorResponseRenderer<out NODE> (source)

Constructors

Name Summary
<init> JsonErrorResponseRenderer(json: Json<NODE>)

Functions

Name Summary
badRequest fun badRequest(failures: List<Failure>): Response
notFound fun notFound(): Response

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T