SMTP
334 Server Challenge Yanıtını Taklit Et
The server is issuing an authentication challenge as part of the SASL authentication exchange. The response contains a Base64-encoded challenge that the client must decode and respond to.
Tam referansı görüntüle →1 HTTP Yanıtı
HTTP/1.1 334 Server Challenge Content-Type: application/json Date: Tue, 25 Feb 2026 12:00:00 GMT
2 curl ile test et
curl -i https://httpbin.org/status/334
3 Framework'ünüzde 334 Server Challenge Döndürün
django
from django.http import HttpResponse
def my_view(request):
return HttpResponse(status=334) # Server Challenge
flask
from flask import Flask
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return "", 334 # Server Challenge
fastapi
from fastapi import FastAPI
from fastapi.responses import Response
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return Response(status_code=334) # Server Challenge
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.sendStatus(334); // Server Challenge
});
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(334) // Server Challenge
.build();
}
}
go net/http
package main
import "net/http"
func myHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(334) // Server Challenge
}
ruby on rails
class MyController < ApplicationController
def my_action
head :server_challenge
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.StatusCode(334) // Server Challenge
);