SMTP

354 Start Mail Input रिस्पॉन्स का मॉक

The server is ready to receive the message body. The client should begin sending the email content (headers and body) and terminate with a single line containing only a period (CRLF.CRLF).

पूर्ण संदर्भ देखें →

1 HTTP रिस्पॉन्स

HTTP रिस्पॉन्स
HTTP/1.1 354 Start Mail Input
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT

2 curl से परीक्षण करें

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

3 अपने फ्रेमवर्क में 354 Start Mail Input वापस करें

django
from django.http import HttpResponse


def my_view(request):
    return HttpResponse(status=354)  # Start Mail Input
flask
from flask import Flask

app = Flask(__name__)


@app.route("/endpoint")
def my_endpoint():
    return "", 354  # Start Mail Input
fastapi
from fastapi import FastAPI
from fastapi.responses import Response

app = FastAPI()


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

import "net/http"

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

और SMTP मॉक पेज