Tested support for email provider Sendgrid

Also updated the code to respond with HTTP status codes