Skip to content

Response Formatting

Fernando Prieto Moyano edited this page Dec 27, 2025 · 1 revision

Enhanced Response Formatting

Every response is beautifully formatted with:

╔═══════════════════════════════════════════════════════════╗
║                     HTTP RESPONSE                         ║
╚═══════════════════════════════════════════════════════════╝

✅ Status: 200 OK
⏱️  Duration: 145ms
📄 Content-Type: application/json
📏 Content-Length: 1234 bytes

─────────────────── HEADERS ───────────────────
  content-type: application/json
  cache-control: max-age=3600

─────────────────── BODY ──────────────────────
{
  "id": 1,
  "name": "John Doe",
  "email": "john@example.com"
}

Features:

  • Status codes with emoji indicators (✅ 2xx, ↪️ 3xx, ⚠️ 4xx, ❌ 5xx)
  • Response time in milliseconds
  • Content-Type detection
  • Automatic JSON pretty-printing
  • Content-Length display

Clone this wiki locally