correct the httpstatus code