Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make visible response status in the second 'then' #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lulusjhos
Copy link

In Avalara documentation says:
...AvaTax API call produces an error, it responds using the standard HTTP error response codes

  • 400-499 Client errors
  • 500-599 Server errors

Handling Error Messages

But we can not get the response status since Avalara is returning response.json(), so the subsequent then and catch only get the result of response.json() which is the body of the response. Therefore the response status is not visible in the second then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants