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

Add not found responses for aggregates and contributions #182

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

rolfyone
Copy link
Collaborator

There are times when an aggregate or contribution is requested by a VC, and the beacon node simply doesn't have any information to return.

Returning 400 'bad request' is probably excessive in this case, the request may be perfectly valid and it's just that the BN wasn't able to respond with data.

We believe that a 404 in these cases would be warranted and allow us a better idea of actual bad requests vs. no data being found at the BN.

@rolfyone
Copy link
Collaborator Author

I have no idea how I broke that lint!

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

Successfully merging this pull request may close these issues.

2 participants