iftechfoundation / ifarchive-unbox

IF Archive Unboxing service
https://unbox.ifarchive.org
MIT License
1 stars 2 forks source link

Return status code 300 Multiple Choice when find has multiple candidates #14

Closed dfabulich closed 2 years ago

dfabulich commented 2 years ago

This differentiates it from status code 200 when it returns content directly

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300

The HTTP 300 Multiple Choices redirect status response code indicates that the request has more than one possible responses. The user-agent or the user should choose one of them. As there is no standardized way of choosing one of the responses, this response code is very rarely used.

curiousdannii commented 2 years ago

Makes sense. But if we switch it to a search parameter then 200 is probably better. Let's wait for Zarf's evaluation.