Extract server code into service.js for testing
Email should be rejected when webhook http code is not 2XX