api-platform / api-platform/create-client

Handle 401, 403 and 204

Open
#221 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
376
Forks
132
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.