scalaj-http icon indicating copy to clipboard operation
scalaj-http copied to clipboard

HttpStatusException should include body in the Exception

Open touchdown opened this issue 8 years ago • 1 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

touchdown avatar May 13 '17 00:05 touchdown

we would like this addressed as well.

gerashegalov avatar Jul 16 '18 20:07 gerashegalov