Fixes "TypeError" for all http 404 responses
Prior to this PR, any 404 response from mailgun would cause a TypeError: exception class/object expected to be thrown from the mailgun gem.
The previous behavior is that 404 should return a nil response instead of throwing an exception. This re-introduces that behavior (with specs), so that only errors that respond to the 'handle' method will be re-raised.
Hey @melcher I just realised I did the same thing you did a while ago in https://github.com/HashNuke/mailgun/pull/58
I can see from this PR that you think the expected behaviour when fetching a missing object is to return nil, how did you decide on that?
Cheers, Stefan
@hairihan do you have any opinion on the topic? :)