Add support for specifying status codes to retry

We needed a way to retry only on specific status codes, so we extended the library to support this use case.

I've added some tests for this. We'd love to get this changes upstream since your library has provided very helpful.

What do you think?

Cheers