-
Notifications
You must be signed in to change notification settings - Fork 538
Closed
Labels
Milestone
Description
Currently, there is special handling for 401, 404, and 500 (https://github.com/okfn/annotator/blob/master/src/plugin/store.coffee#L492)
However, 400 and 403 are both also useful. 400 is used for invalid requests. Although 401 is similar to 403, 401 responses are supposed to have WWW-Authenticate. 403 allows responding with an immediate failure without WWW-Authenticate.
This is similar to issue #5, but that's been closed for a long time, so I didn't comment there.