title: Scala ByteArrayInputStream to String
body: <p>I'm trying to log the body of a post made using org.apache.http.client. I'm using Scalatra version 2.4.0.RC3 and Scala version 2.11.7. My response is a 400 Bad Request and I need to get the message provided in the response body.</p>
  
  <p>Here is my current code:</p>
  
  <pre><code>val response = client.execute(post)
  println(response)
  println(response.getEntity().getContent())
  </code></pre>
  
  <p>response.getEntity().getContent() prints:</p>
  
  <pre><code>java.io.ByteArrayInputStream@1q232e4e
  </code></pre>
  
  <p>I need to get the actual body as string from this ByteArrayInputStream.</p>