Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize 404 error response for domains?name search #91

Open
TheRedTrainer opened this issue Apr 25, 2019 · 0 comments
Open

Standardize 404 error response for domains?name search #91

TheRedTrainer opened this issue Apr 25, 2019 · 0 comments

Comments

@TheRedTrainer
Copy link

Some 404 error responses for domains?name don't serve the same content. For example, the following query

http://localhost:8080/rdap-server/domains?name=*-*

provides this response:

{
 "rdapConformance": [
   "rdap_level_0"
 ],
 "errorCode": "404",
 "title": "Object not found"
}

And this query

http://localhost:8080/rdap-server/domains?name=,.

provides this response:

{
 "rdapConformance": [
   "rdap_level_0"
 ],
 "errorCode": "404",
 "title": "Object not found",
 "description": [
   "Object not found."
 ]
}

The first response includes only errorCode and title, the second response includes errorCode, title and description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant