Work around the lack of response headers

When Streamy is handling an error response, the response body may be
in JDON format, but there's currently no access to the Content-Type
header to check. So, just try to parse it to find out.