SIP
Giả lập phản hồi 437 Unsupported Certificate
The server was unable to validate the certificate referenced by the Identity-Info header. The certificate may be self-signed or from an untrusted CA.
Xem tài liệu tham khảo đầy đủ →1 Phản hồi HTTP
HTTP/1.1 437 Unsupported Certificate
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT
Content-Length: 74
{
"error": "unsupported_certificate",
"message": "Unsupported Certificate"
}
2 Kiểm tra với curl
curl -i https://httpbin.org/status/437
3 Trả về 437 Unsupported Certificate trong Framework của bạn
django
from django.http import JsonResponse
def my_view(request):
return JsonResponse(
{"error": "unsupported_certificate", "message": "Unsupported Certificate"},
status=437,
)
flask
from flask import Flask, jsonify
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return jsonify({"error": "unsupported_certificate", "message": "Unsupported Certificate"}), 437
fastapi
from fastapi import FastAPI
from fastapi.responses import JSONResponse
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return JSONResponse(
content={"error": "unsupported_certificate", "message": "Unsupported Certificate"},
status_code=437,
)
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.status(437).json({"error": "unsupported_certificate", "message": "Unsupported Certificate"});
});
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(437)
.body(Map.of("error", "unsupported_certificate",
"message", "Unsupported Certificate"));
}
}
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(437)
json.NewEncoder(w).Encode(map[string]string{
"error": "unsupported_certificate",
"message": "Unsupported Certificate",
})
}
ruby on rails
class MyController < ApplicationController
def my_action
render json: {"error": "unsupported_certificate", "message": "Unsupported Certificate"},
status: :unsupported_certificate
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.Json(
new { error = "unsupported_certificate", message = "Unsupported Certificate" },
statusCode: 437
)
);