fcrepo4-labs / derby

A pure Ruby Fedora Commons implementation.
Apache License 2.0
5 stars 4 forks source link

Should `fcrepo` API Allow `200` in PATCH Responses? #14

Open no-reply opened 7 years ago

no-reply commented 7 years ago

Clients (ActiveFedora) currently rely on a 204 response to PATCH requests. Is this a bug in the clients and documentation, or does the API genuinely want to restrict to 204, ruling out other status codes (and their associated behaviors).

This is being raised due to #13.

no-reply commented 7 years ago

To tentatively answer my own question: yes. Any otherwise appropriate status codes allowed by RFC 5789 should be acceptable. Clients should anticipate a variety of acceptable responses.