SMTP

556 Domain Does Not Accept Mail Yanıtını Taklit Et

The destination domain does not accept mail and no forwarding address is available. The domain's DNS configuration (null MX record) explicitly indicates it does not receive email.

Tam referansı görüntüle →

1 HTTP Yanıtı

HTTP Yanıtı
HTTP/1.1 556 Domain Does Not Accept Mail
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT
Content-Length: 67

{
  "error": "server_error",
  "message": "Domain Does Not Accept Mail"
}

2 curl ile test et

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

3 Framework'ünüzde 556 Domain Does Not Accept Mail Döndürün

django
from django.http import JsonResponse


def my_view(request):
    return JsonResponse(
        {"error": "server_error", "message": "Domain Does Not Accept Mail"},
        status=556,
    )
flask
from flask import Flask, jsonify

app = Flask(__name__)


@app.route("/endpoint")
def my_endpoint():
    return jsonify({"error": "server_error", "message": "Domain Does Not Accept Mail"}), 556
fastapi
from fastapi import FastAPI
from fastapi.responses import JSONResponse

app = FastAPI()


@app.get("/endpoint")
def my_endpoint():
    return JSONResponse(
        content={"error": "server_error", "message": "Domain Does Not Accept Mail"},
        status_code=556,
    )
express.js
// Express.js
app.get('/endpoint', (req, res) => {
  res.status(556).json({"error": "server_error", "message": "Domain Does Not Accept Mail"});
});
spring boot
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.Map;

@RestController
public class MyController {

    @GetMapping("/endpoint")
    public ResponseEntity<Map<String, Object>> myEndpoint() {
        return ResponseEntity
            .status(556)
            .body(Map.of("error", "domain_does_not_accept_mail",
                         "message", "Domain Does Not Accept Mail"));
    }
}
go net/http
package main

import (
    "encoding/json"
    "net/http"
)

func myHandler(w http.ResponseWriter, r *http.Request) {
    w.Header().Set("Content-Type", "application/json")
    w.WriteHeader(556)
    json.NewEncoder(w).Encode(map[string]string{
        "error":   "domain_does_not_accept_mail",
        "message": "Domain Does Not Accept Mail",
    })
}
ruby on rails
class MyController < ApplicationController
  def my_action
    render json: {"error": "server_error", "message": "Domain Does Not Accept Mail"},
           status: :domain_does_not_accept_mail
  end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
    Results.Json(
        new { error = "domain_does_not_accept_mail", message = "Domain Does Not Accept Mail" },
        statusCode: 556
    )
);

Daha Fazla SMTP Mock Sayfası