FTP
202 Command Superfluous 응답 모의 테스트
The command is not implemented but is recognized as superfluous. The server acknowledges the command but it has no effect.
전체 레퍼런스 보기 →1 HTTP 응답
HTTP/1.1 202 Command Superfluous
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT
Content-Length: 44
{
"status": "accepted",
"task_id": "abc-123"
}
2 curl로 테스트하기
curl -i https://httpbin.org/status/202
3 프레임워크에서 202 Command Superfluous 반환하기
django
from django.http import JsonResponse
def my_view(request):
return JsonResponse(
{"status": "accepted", "task_id": "abc-123"},
status=202,
)
flask
from flask import Flask, jsonify
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return jsonify({"status": "accepted", "task_id": "abc-123"}), 202
fastapi
from fastapi import FastAPI
from fastapi.responses import JSONResponse
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return JSONResponse(
content={"status": "accepted", "task_id": "abc-123"},
status_code=202,
)
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.status(202).json({"status": "accepted", "task_id": "abc-123"});
});
spring boot
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@RestController
public class MyController {
@GetMapping("/endpoint")
public ResponseEntity<Map<String, Object>> myEndpoint() {
return ResponseEntity
.status(202)
.body(Map.of("error", "command_superfluous",
"message", "Command Superfluous"));
}
}
go net/http
package main
import (
"encoding/json"
"net/http"
)
func myHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(202)
json.NewEncoder(w).Encode(map[string]string{
"error": "command_superfluous",
"message": "Command Superfluous",
})
}
ruby on rails
class MyController < ApplicationController
def my_action
render json: {"status": "accepted", "task_id": "abc-123"},
status: :command_superfluous
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.Json(
new { error = "command_superfluous", message = "Command Superfluous" },
statusCode: 202
)
);