Generates a custom API response in a Sails app.