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
{{ message }}
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.
When calling endpoints to interact with smart contracts, when the transaction cannot be broadcast, the API is returning a 400 Bad Request response. This is misleading as the same response is returned, for example, if headers are not set correctly or the request body is not valid. When wanting to handle both situations, this becomes is an issue.
Using a different status code for transactions which are not broadcast, possibly 422, would be more appropriate.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When calling endpoints to interact with smart contracts, when the transaction cannot be broadcast, the API is returning a 400 Bad Request response. This is misleading as the same response is returned, for example, if headers are not set correctly or the request body is not valid. When wanting to handle both situations, this becomes is an issue.
Using a different status code for transactions which are not broadcast, possibly 422, would be more appropriate.
The text was updated successfully, but these errors were encountered: