DNS
Simular Resposta 4 NOTIMP
Not Implemented. The name server does not support the requested query type or operation.
Ver referência completa →1 Resposta HTTP
HTTP/1.1 4 NOTIMP
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT
Content-Length: 40
{
"error": "notimp",
"message": "NOTIMP"
}
2 Testar com curl
curl -i https://httpbin.org/status/4
3 Retornar 4 NOTIMP no Seu Framework
django
from django.http import JsonResponse
def my_view(request):
return JsonResponse(
{"error": "notimp", "message": "NOTIMP"},
status=4,
)
flask
from flask import Flask, jsonify
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return jsonify({"error": "notimp", "message": "NOTIMP"}), 4
fastapi
from fastapi import FastAPI
from fastapi.responses import JSONResponse
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return JSONResponse(
content={"error": "notimp", "message": "NOTIMP"},
status_code=4,
)
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.status(4).json({"error": "notimp", "message": "NOTIMP"});
});
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(4)
.body(Map.of("error", "notimp",
"message", "NOTIMP"));
}
}
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(4)
json.NewEncoder(w).Encode(map[string]string{
"error": "notimp",
"message": "NOTIMP",
})
}
ruby on rails
class MyController < ApplicationController
def my_action
render json: {"error": "notimp", "message": "NOTIMP"},
status: :notimp
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.Json(
new { error = "notimp", message = "NOTIMP" },
statusCode: 4
)
);