SIP
181 Call Is Being Forwarded レスポンスのモック
A proxy server may send this to indicate that the call is being forwarded to a different set of destinations.
完全なリファレンスを見る →1 HTTP レスポンス
HTTP/1.1 181 Call Is Being Forwarded Content-Type: application/json Date: Tue, 25 Feb 2026 12:00:00 GMT
2 curl でテストする
curl -i https://httpbin.org/status/181
3 フレームワークで 181 Call Is Being Forwarded を返す
django
from django.http import HttpResponse
def my_view(request):
return HttpResponse(status=181) # Call Is Being Forwarded
flask
from flask import Flask
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return "", 181 # Call Is Being Forwarded
fastapi
from fastapi import FastAPI
from fastapi.responses import Response
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return Response(status_code=181) # Call Is Being Forwarded
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.sendStatus(181); // Call Is Being Forwarded
});
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(181) // Call Is Being Forwarded
.build();
}
}
go net/http
package main
import "net/http"
func myHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(181) // Call Is Being Forwarded
}
ruby on rails
class MyController < ApplicationController
def my_action
head :call_is_being_forwarded
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.StatusCode(181) // Call Is Being Forwarded
);