Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

SmartContractWalletController HTTP response status codes #4109

Open
drmathias opened this issue Jan 2, 2020 · 0 comments
Open

SmartContractWalletController HTTP response status codes #4109

drmathias opened this issue Jan 2, 2020 · 0 comments

Comments

@drmathias
Copy link
Contributor

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.

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

No branches or pull requests

1 participant