SMTP

Mock 455 Server Unable to Accommodate Response

The server is currently unable to accommodate the requested parameters. This is a general temporary failure indicating the server cannot process the specific request at this time.

View full reference →

1 HTTP Response

HTTP Response
HTTP/1.1 455 Server Unable to Accommodate
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT
Content-Length: 84

{
  "error": "server_unable_to_accommodate",
  "message": "Server Unable to Accommodate"
}

2 Test with curl

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

3 Return 455 Server Unable to Accommodate in Your Framework

django
from django.http import JsonResponse


def my_view(request):
    return JsonResponse(
        {"error": "server_unable_to_accommodate", "message": "Server Unable to Accommodate"},
        status=455,
    )
flask
from flask import Flask, jsonify

app = Flask(__name__)


@app.route("/endpoint")
def my_endpoint():
    return jsonify({"error": "server_unable_to_accommodate", "message": "Server Unable to Accommodate"}), 455
fastapi
from fastapi import FastAPI
from fastapi.responses import JSONResponse

app = FastAPI()


@app.get("/endpoint")
def my_endpoint():
    return JSONResponse(
        content={"error": "server_unable_to_accommodate", "message": "Server Unable to Accommodate"},
        status_code=455,
    )
express.js
// Express.js
app.get('/endpoint', (req, res) => {
  res.status(455).json({"error": "server_unable_to_accommodate", "message": "Server Unable to Accommodate"});
});
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(455)
            .body(Map.of("error", "server_unable_to_accommodate",
                         "message", "Server Unable to Accommodate"));
    }
}
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(455)
    json.NewEncoder(w).Encode(map[string]string{
        "error":   "server_unable_to_accommodate",
        "message": "Server Unable to Accommodate",
    })
}
ruby on rails
class MyController < ApplicationController
  def my_action
    render json: {"error": "server_unable_to_accommodate", "message": "Server Unable to Accommodate"},
           status: :server_unable_to_accommodate
  end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
    Results.Json(
        new { error = "server_unable_to_accommodate", message = "Server Unable to Accommodate" },
        statusCode: 455
    )
);

More SMTP Mock Pages