api/graph: Forward error response from the graph API
If the request sent to the graph API returns an error, forward the raw error response as the Web API response instead of trying to parse a JSON response that usually fails.
Migrated from D6918 (view on Phabricator)