rewrite status code