FTP
Имитация ответа 120 Service Ready Soon
The service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly.
Просмотреть полный справочник →1 HTTP-ответ
HTTP/1.1 120 Service Ready Soon Content-Type: application/json Date: Tue, 25 Feb 2026 12:00:00 GMT
2 Протестировать с curl
curl -i https://httpbin.org/status/120
3 Вернуть 120 Service Ready Soon в вашем фреймворке
django
from django.http import HttpResponse
def my_view(request):
return HttpResponse(status=120) # Service Ready Soon
flask
from flask import Flask
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return "", 120 # Service Ready Soon
fastapi
from fastapi import FastAPI
from fastapi.responses import Response
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return Response(status_code=120) # Service Ready Soon
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.sendStatus(120); // Service Ready Soon
});
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(120) // Service Ready Soon
.build();
}
}
go net/http
package main
import "net/http"
func myHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(120) // Service Ready Soon
}
ruby on rails
class MyController < ApplicationController
def my_action
head :service_ready_soon
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.StatusCode(120) // Service Ready Soon
);