"{slug}")] HttpRequestMessage req, string slug, TraceWriter log) { var getUrl = new GetUrlHandler(); var minifiedUrl = await getUrl.Execute(slug); if (minifiedUrl == null) { return req.CreateErrorResponse(HttpStatusCode.NotFound, $"Minified value `{slug}` is not found."); } var response = req.CreateResponse(HttpStatusCode.Redirect); response.Headers.Location = new Uri(minifiedUrl.FullUrl); return response; }