I'm trying to return error messages to a custom client via API. However, none of the exception classes pass a custom error message or code to an API client...