DNS

9 NOTAUTH レスポンスのモック

Server Not Authoritative for zone, or Not Authorized. The server is not authoritative for the zone named in the Zone section.

完全なリファレンスを見る →

1 HTTP レスポンス

HTTP レスポンス
HTTP/1.1 9 NOTAUTH
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT

2 curl でテストする

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

3 フレームワークで 9 NOTAUTH を返す

django
from django.http import HttpResponse


def my_view(request):
    return HttpResponse(status=9)  # NOTAUTH
flask
from flask import Flask

app = Flask(__name__)


@app.route("/endpoint")
def my_endpoint():
    return "", 9  # NOTAUTH
fastapi
from fastapi import FastAPI
from fastapi.responses import Response

app = FastAPI()


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

import "net/http"

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

他の DNS モックページ