Rewriting status code