On response code 500, return getErrorStream() instead