rewrite response error