improved error condition handling in mailgun get messages