Skip to content

Have store plugin handle 400 and 403 #237

@mattflaschen

Description

@mattflaschen

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions