Skip to content

StatusText Fallback#21

Open
PaitoAnderson wants to merge 1 commit intotypicode:masterfrom
PaitoAnderson:master
Open

StatusText Fallback#21
PaitoAnderson wants to merge 1 commit intotypicode:masterfrom
PaitoAnderson:master

Conversation

@PaitoAnderson
Copy link

When working with React Native I noticed the response.statusText was undefined vs running in a browser, added response.status as a fallback string.

I am not sure I love this solution, because the promise catch could return either "Not Found" or "404" depending on the underlying implementation, open to suggestions.

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.

1 participant