scalaj / scalaj-http

Simple scala wrapper for HttpURLConnection. OAuth included.
Apache License 2.0
974 stars 120 forks source link

HttpStatusException should include body in the Exception #134

Open touchdown opened 7 years ago

touchdown commented 7 years ago

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

gerashegalov commented 6 years ago

we would like this addressed as well.