为前端测试產生状态码、延迟和响应体片段. 靈感來自 pascalwengerter/awesome-webtools,並以 ToolNext 原生頁面實作,包含 SEO、中英以外語系 FAQ 與響應式版面。 由 ToolNext 免費線上工具箱提供。
Generate status, delay, and body snippets for frontend response testing.
Enter Status code, results update automatically
Enter Delay ms, results update automatically
Enter Response body, results update automatically
HTTP 503 Service Unavailable
Class: server error
Simulated delay: 1200ms
Headers:
Content-Type: application/json
Cache-Control: no-cache
Retry-After: 30
Body:
{"error":"maintenance"}
✓ Body is valid JSON
Curl mock command:
curl -X GET http://localhost:3000/api/mock \
-H "Accept: application/json" \
-w "\nStatus: %{http_code} (%{time_total}s)"
Fetch mock (1200ms delay):
const res = await fetch('/api/data')
const data = await res.json()