scalaj / scalaj-http

Simple scala wrapper for HttpURLConnection. OAuth included.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HttpStatusException should include body in the Exception

touchdown opened this issue · comments

can we have something like

case class HttpStatusException(
  code: Int,
  statusLine: String,
  body: String
) extends RuntimeException(code + " Error: " + statusLine +  "Body: " + body)

So we can forward the body of the exception to users from responses?
I can take that on if that makes sense

we would like this addressed as well.