easy5 pts · first answer countshttpauthorization
Status 401 vs 403
A logged-in user with the "viewer" role calls DELETE /api/projects/7, but only admins may delete projects. Which status code should the API return?
Discussion 0
Join free to post in the discussion.
Related questions
- Status code after creating a resourceFull Stack Developer
- Fixing a CORS errorFull Stack Developer
- Which method is idempotentFull Stack Developer
- PATCH vs PUT for one fieldFull Stack Developer
- Empty req.body in ExpressFull Stack Developer
- Posts vanish from GET linksFull Stack Developer
- What triggers a preflightFull Stack Developer
- Response for an empty listFull Stack Developer