Throw an exception if HTTP status is not 2XX

We would lost log messages silently. 
See https://sumologic.zendesk.com/entries/62972608-HTTP-source-API-documentation