not just 404

Co-authored-by: Eric Huss <eric@huss.org>
This commit is contained in:
Jacob Finkelman 2022-07-13 18:23:29 -04:00 committed by GitHub
parent ad2b7b1812
commit 016c6f938b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -320,7 +320,9 @@ visit the registry's website to obtain a token, and Cargo can store the token
using the [`cargo login`] command, or by passing the token on the
command-line.
Responses should use the 200 or 404 response code as appropriate. Failure
Responses use the 200 response code for success.
Errors should use an appropriate response code, such as 404.
Failure
responses should have a JSON object with the following structure:
```javascript