Server's /repository
does not return 404
but 200
when there are no files
#1629
Labels
🪲 bug
Something isn't working
I've noticed when GET'ing a file that does not exist, the server's
/repository
endpoint does not return a404
but a200
.https://sourcify.dev/server/repository/contracts/full_match/11155111/0x0A3CbE147dc7BcF5c48113037FDbb05139E370f5/sources/asdsadsad
Repo works as intended for this example because it doesn't have a file extension like
.sol
:https://repo.sourcify.dev/contracts/full_match/11155111/0x0A3CbE147dc7BcF5c48113037FDbb05139E370f5/sources/asdsadsad
But when added a file extension it works similar to above:
https://repo.sourcify.dev/contracts/full_match/11155111/0x0A3CbE147dc7BcF5c48113037FDbb05139E370f5/sources/asdsadsad.sol
The text was updated successfully, but these errors were encountered: