add statuscode and res content