make accepted status codes configurable