Behavior when encountering unexpected status codes

Quick fix for issue #5.