ethereum / beacon-APIs

Collection of RESTful APIs provided by Ethereum Beacon nodes
https://ethereum.github.io/beacon-APIs/
Creative Commons Zero v1.0 Universal
335 stars 169 forks source link

Missing 404 for `/eth/v1/beacon/states/{state_id}/validator_balances` and similar #378

Closed michaelsproul closed 11 months ago

michaelsproul commented 11 months ago

While implementing the new POST validators/validator_balances endpoints I realised that the endpoint specs are missing 404 responses for the case where the state is missing/not available.

Usually we signal that the state isn't known with 404, although I guess we could also return a 400?

It seems more like an oversight (on both GET and POST) to me.