Gatewayd is an HTTP / JSON API server that provides functionality enabling any user of the software to operate a Ripple Gateway. The REST interface is composed of nearly forty endpoints, for which the required parameters and successful responses are documented. However there are very few if any appropriate error messages returned to the API caller when an invalid request is made, or when gatewayd experiences a software exception.
-
Enumerate all the various errors that can be returned from the Gatewayd API.
-
Write mocha specs for the HTTP API that test error cases and assert properly formatted errors.
-
Implement proper error generation in the API Core layer, and propagate the errors to the HTTP API layer.
Error reporting of Gatewayd with as much robustness as provided by the tasks listed will dramatically improve the experience for engineers creating integrations with Gatewayd and plugin modules for additional Gatewayd functionality.