Closed hluk closed 1 year ago
Includes API request details when an unexpected status code is encountered.
Makes error consistent across all API calls.
Also fixes problem when error response from the API contains "errors" field instead of "error" or does not contain any of these.
@ktdreyer Can you review please?
Love it that you've brought much-needed consistency to the error handling, and this will make it much easier to debug future problems. Thank you!
Includes API request details when an unexpected status code is encountered.
Makes error consistent across all API calls.
Also fixes problem when error response from the API contains "errors" field instead of "error" or does not contain any of these.