In the Federation documentation it is explicitly mentioned that we should return 404 for a failed federation name lookup.

Example: https://YOUR_FEDERATION_SERVER/federation?q=jed*stellar.org&type=name

What could be the http status codes if my server is not planning to support other lookups like forward, id, txid

Right now I am throwing a 404 with

{
    "detail": "We currently support `name` lookups only"
}

Is this fine?

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.