GEOS-6258 - Not considering http error codes < 400 as an error.

Patch provided by Rob Marianski.