HTTP

Giả lập phản hồi 102 Processing

The server has received and is processing the request, but no response is available yet. Prevents the client from timing out.

Xem tài liệu tham khảo đầy đủ →

1 Phản hồi HTTP

Phản hồi HTTP
HTTP/1.1 102 Processing
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT

2 Kiểm tra với curl

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

3 Trả về 102 Processing trong Framework của bạn

django
from django.http import HttpResponse


def my_view(request):
    return HttpResponse(status=102)  # Processing
flask
from flask import Flask

app = Flask(__name__)


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

app = FastAPI()


@app.get("/endpoint")
def my_endpoint():
    return Response(status_code=102)  # Processing
express.js
// Express.js
app.get('/endpoint', (req, res) => {
  res.sendStatus(102); // Processing
});
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(102) // Processing
            .build();
    }
}
go net/http
package main

import "net/http"

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

Thêm trang giả lập HTTP