public static HttpResult SoftRedirect(string newLocationUri, object response = null) { return new HttpResult(response) { Headers = { { HttpHeaders.XLocation, newLocationUri }, } }; }