HTTP

Mock 303 See Other Response

The server is redirecting to a different resource using GET, typically after a POST operation (Post/Redirect/Get pattern).

View full reference →

1 HTTP Response

HTTP Response
HTTP/1.1 303 See Other
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT
Location: https://example.com/new-location

2 Test with curl

terminal
curl -i https://httpbin.org/status/303

3 Return 303 See Other in Your Framework

django
from django.http import HttpResponse


def my_view(request):
    return HttpResponse(status=303)  # See Other
flask
from flask import Flask

app = Flask(__name__)


@app.route("/endpoint")
def my_endpoint():
    return "", 303  # See Other
fastapi
from fastapi import FastAPI
from fastapi.responses import Response

app = FastAPI()


@app.get("/endpoint")
def my_endpoint():
    return Response(status_code=303)  # See Other
express.js
// Express.js
app.get('/endpoint', (req, res) => {
  res.sendStatus(303); // See Other
});
spring boot
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
public class MyController {

    @GetMapping("/endpoint")
    public ResponseEntity<Void> myEndpoint() {
        return ResponseEntity
            .status(303) // See Other
            .build();
    }
}
go net/http
package main

import "net/http"

func myHandler(w http.ResponseWriter, r *http.Request) {
    w.WriteHeader(303) // See Other
}
ruby on rails
class MyController < ApplicationController
  def my_action
    head :see_other
  end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
    Results.StatusCode(303) // See Other
);

More HTTP Mock Pages