fixed error response code