Hacker News new | ask | show | jobs
by ascotan 924 days ago
Idempotentancy on POST isn't just about preventing double posting. For POST the RFC says you can return 303 when the call to create a resource would have resulted in generating an existing resource. You need a Location header for allowing the client to redirect to the corresponding GET. This allows clients to POST multiple times (over time) for the same resources and not have to handle 400 errors.