handleResponse (status, headers, payload, requestData) Object | DS.AdapterError
Defined in addon/adapters/rest.js:886 Available since 1.13.0
Takes an ajax response, and returns the json payload or an error. By default this hook just returns the json payload passed to it. You might want to override it in two cases: Your API might return useful results in the response headers. Response headers are passed in as the second argument. Your API might return errors as successful responses with stat