Add support for more status codes in RestService