Added ability to skip retries on 404 errors.

Fixes #53