default the status code to the passed in status code -- not null