SIP
Simuler une réponse 607 Unwanted
The called party did not want this call from the calling party. This response is used for robocall and spam call blocking.
Voir la référence complète →1 Réponse HTTP
HTTP/1.1 607 Unwanted Content-Type: application/json Date: Tue, 25 Feb 2026 12:00:00 GMT
2 Tester avec curl
curl -i https://httpbin.org/status/607
3 Retourner 607 Unwanted dans votre framework
django
from django.http import HttpResponse
def my_view(request):
return HttpResponse(status=607) # Unwanted
flask
from flask import Flask
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return "", 607 # Unwanted
fastapi
from fastapi import FastAPI
from fastapi.responses import Response
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return Response(status_code=607) # Unwanted
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.sendStatus(607); // Unwanted
});
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(607) // Unwanted
.build();
}
}
go net/http
package main
import "net/http"
func myHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(607) // Unwanted
}
ruby on rails
class MyController < ApplicationController
def my_action
head :unwanted
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.StatusCode(607) // Unwanted
);