Skip to content

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

Open
lulusjhos wants to merge 1 commit intoavadev:mainfrom
lulusjhos:ReturnResponseStatus
Open

Make visible response status in the second 'then'#207
lulusjhos wants to merge 1 commit intoavadev:mainfrom
lulusjhos:ReturnResponseStatus

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