HttpErrorFunctions

uk.gov.hmrc.http.HttpErrorFunctions
See theHttpErrorFunctions companion object

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def badGatewayMessage(verbName: String, url: String, status: Int, responseBody: String): String
def badGatewayMessage(verbName: String, url: String, e: Exception): String
def badRequestMessage(verbName: String, url: String, responseBody: String): String
def gatewayTimeoutMessage(verbName: String, url: String, e: Exception): String
def handleResponseEither(httpMethod: String, url: String)(response: HttpResponse): Either[UpstreamErrorResponse, HttpResponse]
def handleResponseEitherStream(httpMethod: String, url: String)(response: HttpResponse)(implicit mat: Materializer, errorTimeout: ErrorTimeout): Either[UpstreamErrorResponse, HttpResponse]
def is2xx(status: Int): Boolean
def is4xx(status: Int): Boolean
def is5xx(status: Int): Boolean
def notFoundMessage(verbName: String, url: String, responseBody: String): String
def preconditionFailedMessage(verbName: String, url: String, responseBody: String): String
def upstreamResponseMessage(verbName: String, url: String, status: Int, responseBody: String): String