FTP
Giả lập phản hồi 552 Exceeded Storage Allocation
Requested file action aborted. Exceeded storage allocation for the current directory or dataset. The user's quota has been reached.
Xem tài liệu tham khảo đầy đủ →1 Phản hồi HTTP
HTTP/1.1 552 Exceeded Storage Allocation
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT
Content-Length: 67
{
"error": "server_error",
"message": "Exceeded Storage Allocation"
}
2 Kiểm tra với curl
curl -i https://httpbin.org/status/552
3 Trả về 552 Exceeded Storage Allocation trong Framework của bạn
django
from django.http import JsonResponse
def my_view(request):
return JsonResponse(
{"error": "server_error", "message": "Exceeded Storage Allocation"},
status=552,
)
flask
from flask import Flask, jsonify
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return jsonify({"error": "server_error", "message": "Exceeded Storage Allocation"}), 552
fastapi
from fastapi import FastAPI
from fastapi.responses import JSONResponse
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return JSONResponse(
content={"error": "server_error", "message": "Exceeded Storage Allocation"},
status_code=552,
)
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.status(552).json({"error": "server_error", "message": "Exceeded Storage Allocation"});
});
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(552)
.body(Map.of("error", "exceeded_storage_allocation",
"message", "Exceeded Storage Allocation"));
}
}
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(552)
json.NewEncoder(w).Encode(map[string]string{
"error": "exceeded_storage_allocation",
"message": "Exceeded Storage Allocation",
})
}
ruby on rails
class MyController < ApplicationController
def my_action
render json: {"error": "server_error", "message": "Exceeded Storage Allocation"},
status: :exceeded_storage_allocation
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.Json(
new { error = "exceeded_storage_allocation", message = "Exceeded Storage Allocation" },
statusCode: 552
)
);