@@ -0,0 +1,790 @@
+// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.%0Apackage com.yahoo.restapi;%0A%0Aimport com.yahoo.jdisc.Response;%0A%0Aimport java.net.URI;%0A%0A/**%0A * A HTTP redirect response%0A *%0A * @author bjorncs%0A */%0Apublic class RedirectResponse extends MessageResponse %7B%0A%0A    private RedirectResponse(int statusCode, URI location) %7B%0A        super(statusCode, %22Moved to %22 + location.toString());%0A        headers().add(%22Location%22, location.toString());%0A    %7D%0A%0A    public static RedirectResponse found(URI location) %7B%0A        return new RedirectResponse(Response.Status.FOUND, location);%0A    %7D%0A%0A    public static RedirectResponse movedPermanently(URI location) %7B%0A        return new RedirectResponse(Response.Status.MOVED_PERMANENTLY, location);%0A    %7D%0A%7D%0A

Add redirect response