SIP

Mock Respons 604 Does Not Exist Anywhere

The server has authoritative information that the user indicated in the Request-URI does not exist anywhere. Unlike 404, this is a definitive, global statement.

Lihat referensi lengkap →

1 Respons HTTP

Respons HTTP
HTTP/1.1 604 Does Not Exist Anywhere
Content-Type: application/json
Date: Tue, 25 Feb 2026 12:00:00 GMT

2 Uji dengan curl

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

3 Kembalikan 604 Does Not Exist Anywhere di Framework Anda

django
from django.http import HttpResponse


def my_view(request):
    return HttpResponse(status=604)  # Does Not Exist Anywhere
flask
from flask import Flask

app = Flask(__name__)


@app.route("/endpoint")
def my_endpoint():
    return "", 604  # Does Not Exist Anywhere
fastapi
from fastapi import FastAPI
from fastapi.responses import Response

app = FastAPI()


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

import "net/http"

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

Halaman Mock SIP Lainnya