http_error to return HTTP body as an array