allow passing a simple number for the status codes for all results except EmptyResult