launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #07387
Re: Breaking backward incompatibility with exception mapping
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11-06-15 06:05 PM, Francis J. Lacoste wrote:
> We have a bunch of exceptions that are mapped to 400 but should really
> be mapped to 404. NoSuchPPA, NoSuchDistroSeries, NoSuchBranch, etc.
More precision is nice, but I'm a bit worried that 404 may be too
contextual. I interpret 404 as "The resource requested at this URL does
not exist". So if I'm retrieving a branch that doesn't exist, a 404
seems like a reasonable status code. But if I'm supplying a branch that
doesn't exist as a POST or GET parameter to another URL, e.g. to set a
series branch, 404 suggests that the URL (i.e. the series), not the
branch parameter, doesn't exist.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk36A/oACgkQ0F+nu1YWqI0l1gCeLclbP2BUde4rSL9gBH8SFe/S
IvoAnjR1lI+0Ma6LO5mPQBsREX21+nGT
=HZwK
-----END PGP SIGNATURE-----
Follow ups
References