braid-org / braid-spec

Working area for Braid extensions to HTTP
https://braid.org
236 stars 16 forks source link

What error code should we use when historical versions are missing? #108

Open josephg opened 3 years ago

josephg commented 3 years ago

This issue is a follow-up to #90 . The spec is now intentionally ambiguous about which error code to send when historical versions are missing or unavailable on the server.

I proposed 416 Range Not Available, but it was raised that 416 might not make sense given the request wasn't a range request.

Alternate suggestions:

It would be great to get some use cases for requesting historical versions from the server in general, to figure out what the client should do in cases like this.

mitar commented 2 years ago

I think 410 Gone is almost perfect for this: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410

Or maybe simply 404?