The current error response from email-service is to include the error message in a json payload under the key error. This is useful for development, but for more advanced purposes it would be ideal to allow for customization of this error response. Specifically, the company I am working for has standardized an error response from our APIs that I'd like our running version of email-service to conform to.
I'm going to fork and put together a working example, but want to raise this issue so I can get feedback if there is a particular way you folks would like this done.
Thanks for the great service! Will report back with a PR within the next week or so.
The current error response from email-service is to include the error message in a json payload under the key
error. This is useful for development, but for more advanced purposes it would be ideal to allow for customization of this error response. Specifically, the company I am working for has standardized an error response from our APIs that I'd like our running version of email-service to conform to.I'm going to fork and put together a working example, but want to raise this issue so I can get feedback if there is a particular way you folks would like this done.
Thanks for the great service! Will report back with a PR within the next week or so.