All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.contract.ErrorResponseRenderer.kt Maven / Gradle / Ivy

There is a newer version: 5.31.0.0
Show newest version
package org.http4k.contract

import org.http4k.core.Response
import org.http4k.core.Status.Companion.BAD_REQUEST
import org.http4k.core.Status.Companion.NOT_FOUND
import org.http4k.lens.LensFailure

interface ErrorResponseRenderer {
    fun badRequest(lensFailure: LensFailure) = Response(BAD_REQUEST)
    fun notFound() = Response(NOT_FOUND)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy