Sporadic HTTP 400 on GET `/ids/<someId>`
Open
- Dominant language
- Java
- Stars
- 154
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
I sometimes get a 400 response with `Package id not found`. For instance:
```
GET https://api.foojay.io/disco/v3.0/ids/552c7bffe0370c66410a51c55985b511
invalid: 400 Bad Request
Text: "{"result":[],"message":"Package id not found"}"
```
I see 2 problems here:
1. I retried this same URL later and the package was found (so maybe it was a sporadic error?)
2. For an ID that's not found, HTTP 404 would be more appropriate than HTTP 400
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.