Safety & Idempotency in HTTP
From the HTTP Methods cheat sheet ยท Method Properties ยท verified Jul 2026
Safety & Idempotency
javascript
// Safe Methods (no side effects)
GET, HEAD, OPTIONS, TRACE
// Idempotent Methods (same result)
GET, HEAD, PUT, DELETE, OPTIONS, TRACE
// Neither Safe nor Idempotent
POST, PATCH*๐ก๏ธ Safe = no side effects
๐ Idempotent = same result on retry
๐ก Important for caching and retry logic