HttpError

An Error will be returned if something goes wrong with an HTTP request.

trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Type members

Enum entries

case BadRequest(msg: String) extends HttpError

A BadRequest means that the provide request was not valid for some reason.

A BadRequest means that the provide request was not valid for some reason.

Value parameters:
msg

error message

case DecodingFailure(decodingError: String, response: Response[String]) extends HttpError

A BadPayload means that the body of the response could not be parsed correctly.

A BadPayload means that the body of the response could not be parsed correctly.

Value parameters:
decodingError

debugging message that explains what went wrong

response

the response

case NetworkError extends HttpError

A NetworkError means that there is a problem with the network.

A NetworkError means that there is a problem with the network.

case Timeout extends HttpError

A Timeout means that it took too long to get a response.

A Timeout means that it took too long to get a response.