You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When JSON/RPC endpoints return errors, the resulting body JSON document contains the error message and the HTTP status is supposed to be 200. While I personally can see an argument for why JSON/RPC "should have" returned an HTTP error in this case, it actually doesn't make much sense in other contexts and no matter what 500 would be the wrong code to return.
I'll take a look... make sense what you say, the node behaves like v1.0 spec, for v2.0 all the codes shouldn't be necessary. We can follow sthg like this: hyperledger/besu#549
When JSON/RPC endpoints return errors, the resulting body JSON document contains the error message and the HTTP status is supposed to be 200. While I personally can see an argument for why JSON/RPC "should have" returned an HTTP error in this case, it actually doesn't make much sense in other contexts and no matter what 500 would be the wrong code to return.
The text was updated successfully, but these errors were encountered: