Document error for obsolete API version #449
Comments
Some additional context in https://bugzilla.mozilla.org/show_bug.cgi?id=951306 |
I propose "410 Gone" for an obsolete API endpoint. |
Is there a specific reason we can't just use 404? Otherwise we need to keep track of obsolete routes instead of just deleting them. |
I'm fine with 404. |
As we talked about in person, I'm nervous about using 404 for this, because a variety of transient problems (server downtime, DNS failures, client-side network borkage) could provoke the client to tell our user "you need to upgrade your browser" instead of "please try again later". Confusing and annoying. So I'd be a lot happier with something like 410 Gone along with a URL that lists the currently relevant API versions and known-new-enough client versions. It does mean we have to keep something for v1 around forever, but I'm hoping that it can be a single wildcard-route for anything that starts with |
So the proposal is: 410 Gone, error="Obsolete API", URL= pointer to a page with upgrade instructions |
+1 to 410. |
+1 to 410. Stick a fork in it. |
Can we please clarify exactly which endpoints this is for? Issue suggests just /v1/auth/password, but this is generally useful. |
Yes, I intended this error could be returned by any API call. |
You can now test the behavior against master with any url starting with |
yay, closing. |
This will allow us to rev our API and retire old versions without breaking older native clients in indecipherable ways (as long as they handle this error!).
The text was updated successfully, but these errors were encountered: