HTTP
Simuler une réponse 100 Continue
The server has received the request headers and the client should proceed to send the request body. This lets the client know it can continue with the request or abort if the headers were rejected.
Voir la référence complète →1 Réponse HTTP
HTTP/1.1 100 Continue Content-Type: application/json Date: Tue, 25 Feb 2026 12:00:00 GMT
2 Tester avec curl
curl -i https://httpbin.org/status/100
3 Retourner 100 Continue dans votre framework
django
from django.http import HttpResponse
def my_view(request):
return HttpResponse(status=100) # Continue
flask
from flask import Flask
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return "", 100 # Continue
fastapi
from fastapi import FastAPI
from fastapi.responses import Response
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return Response(status_code=100) # Continue
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.sendStatus(100); // Continue
});
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(100) // Continue
.build();
}
}
go net/http
package main
import "net/http"
func myHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(100) // Continue
}
ruby on rails
class MyController < ApplicationController
def my_action
head :continue
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.StatusCode(100) // Continue
);