WebSocket
1015 TLS Handshake Failure Antwort simulieren
A reserved value indicating the connection was closed because the TLS handshake failed. This code must not be set by an endpoint in a Close frame.
Vollständige Referenz anzeigen →1 HTTP-Antwort
HTTP/1.1 1015 TLS Handshake Failure Content-Type: application/json Date: Tue, 25 Feb 2026 12:00:00 GMT
2 Mit curl testen
curl -i https://httpbin.org/status/1015
3 1015 TLS Handshake Failure in Ihrem Framework zurückgeben
django
from django.http import HttpResponse
def my_view(request):
return HttpResponse(status=1015) # TLS Handshake Failure
flask
from flask import Flask
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return "", 1015 # TLS Handshake Failure
fastapi
from fastapi import FastAPI
from fastapi.responses import Response
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return Response(status_code=1015) # TLS Handshake Failure
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.sendStatus(1015); // TLS Handshake Failure
});
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(1015) // TLS Handshake Failure
.build();
}
}
go net/http
package main
import "net/http"
func myHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(1015) // TLS Handshake Failure
}
ruby on rails
class MyController < ApplicationController
def my_action
head :tls_handshake_failure
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.StatusCode(1015) // TLS Handshake Failure
);