decentralized-identity / universal-resolver

Universal Resolver implementation and drivers.
https://uniresolver.io/
Apache License 2.0
529 stars 233 forks source link

What HTTP code should api-driver return when DID is not found? #392

Open bozzzzo opened 6 months ago

bozzzzo commented 6 months ago

According to api-driver.yml the driver can respond to /identifiers/{identifier} only with HTTP codes 200, 400, 410 or 500. The example resolver returns 404 for not found DID.

Add missing valid HTTP response codes to the api-driver.yml

peacekeeper commented 6 months ago

I agree, the .yml file should be updated accordingly. The DID Resolution specification also mentions 404: https://w3c-ccg.github.io/did-resolution/#bindings-https