SIP
Имитация ответа 493 Undecipherable
The request body was encrypted with S/MIME but the server cannot decrypt it. The server may lack the necessary key or certificate.
Просмотреть полный справочник →1 HTTP-ответ
HTTP/1.1 493 Undecipherable
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT
Content-Length: 56
{
"error": "undecipherable",
"message": "Undecipherable"
}
2 Протестировать с curl
curl -i https://httpbin.org/status/493
3 Вернуть 493 Undecipherable в вашем фреймворке
django
from django.http import JsonResponse
def my_view(request):
return JsonResponse(
{"error": "undecipherable", "message": "Undecipherable"},
status=493,
)
flask
from flask import Flask, jsonify
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return jsonify({"error": "undecipherable", "message": "Undecipherable"}), 493
fastapi
from fastapi import FastAPI
from fastapi.responses import JSONResponse
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return JSONResponse(
content={"error": "undecipherable", "message": "Undecipherable"},
status_code=493,
)
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.status(493).json({"error": "undecipherable", "message": "Undecipherable"});
});
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(493)
.body(Map.of("error", "undecipherable",
"message", "Undecipherable"));
}
}
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(493)
json.NewEncoder(w).Encode(map[string]string{
"error": "undecipherable",
"message": "Undecipherable",
})
}
ruby on rails
class MyController < ApplicationController
def my_action
render json: {"error": "undecipherable", "message": "Undecipherable"},
status: :undecipherable
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.Json(
new { error = "undecipherable", message = "Undecipherable" },
statusCode: 493
)
);