correct the header and response status