allow passing a status code to json_response