nft.storage icon indicating copy to clipboard operation
nft.storage copied to clipboard

/delete when unauthorized returns 404 rather than 401 or 403

Open dchoi27 opened this issue 3 years ago • 0 comments

We detail potential responses for /delete here: https://nft.storage/api-docs/ image

However, we don't see any 401s or 403s returned in practice, just 404s for 4xx errors. When I submit a random unauthorized request (e.g. https://api.nft.storage/delete/asfwaefawef), I get back a 404.

We should either change the API or the docs to reflect this.

dchoi27 avatar May 02 '22 21:05 dchoi27