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

Handle 401, 403 and 204 #221

Open
danaki opened this issue Jul 8, 2020 · 0 comments
Open

Handle 401, 403 and 204 #221

danaki opened this issue Jul 8, 2020 · 0 comments

Comments

@danaki
Copy link

danaki commented Jul 8, 2020

In fetch.js

Handle 401, 403 and throw an Authorization error.

Handle 204 because methods like DELETE do not provide any JSON output (Unexpected end of JSON input thrown).

I'm using vue, I guess other generators can also benefit from this feature. If you wish I could provide a PR.

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

No branches or pull requests

1 participant