SIP

محاكاة استجابة 300 Multiple Choices

The address in the request resolved to several choices, each with its own location. The user or UA can select a preferred communication endpoint.

عرض المرجع الكامل →

1 استجابة HTTP

استجابة HTTP
HTTP/1.1 300 Multiple Choices
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT

2 اختبار باستخدام curl

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

3 إرجاع 300 Multiple Choices في إطار العمل الخاص بك

django
from django.http import HttpResponse


def my_view(request):
    return HttpResponse(status=300)  # Multiple Choices
flask
from flask import Flask

app = Flask(__name__)


@app.route("/endpoint")
def my_endpoint():
    return "", 300  # Multiple Choices
fastapi
from fastapi import FastAPI
from fastapi.responses import Response

app = FastAPI()


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

import "net/http"

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

المزيد من صفحات محاكاة SIP