WebSocket

จำลองการตอบสนอง 1005 No Status Received

A reserved value that indicates no status code was present in the Close frame. This code must not be set by an endpoint when sending a Close frame.

ดูเอกสารอ้างอิงฉบับเต็ม →

1 การตอบสนอง HTTP

การตอบสนอง HTTP
HTTP/1.1 1005 No Status Received
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT

2 ทดสอบด้วย curl

terminal
curl -i https://httpbin.org/status/1005

3 ส่งคืน 1005 No Status Received ในเฟรมเวิร์กของคุณ

django
from django.http import HttpResponse


def my_view(request):
    return HttpResponse(status=1005)  # No Status Received
flask
from flask import Flask

app = Flask(__name__)


@app.route("/endpoint")
def my_endpoint():
    return "", 1005  # No Status Received
fastapi
from fastapi import FastAPI
from fastapi.responses import Response

app = FastAPI()


@app.get("/endpoint")
def my_endpoint():
    return Response(status_code=1005)  # No Status Received
express.js
// Express.js
app.get('/endpoint', (req, res) => {
  res.sendStatus(1005); // No Status Received
});
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(1005) // No Status Received
            .build();
    }
}
go net/http
package main

import "net/http"

func myHandler(w http.ResponseWriter, r *http.Request) {
    w.WriteHeader(1005) // No Status Received
}
ruby on rails
class MyController < ApplicationController
  def my_action
    head :no_status_received
  end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
    Results.StatusCode(1005) // No Status Received
);

หน้าจำลอง WebSocket เพิ่มเติม