Use SendGrid 4xx/5xx http codes to handle errors