#http
Im building an API where clients create orders with a POST 😂 Mobile clients on bad connections sometimes time out and retry, and weve ended up with duplicate orders a few times. customers notice duplicates immediaetly, and refunding them by hand is getting…
say ur frontend sends fetch(url, { method: "POST", headers: { "Content Type": "application/json" }, credentials: "include" }) to an API on a different origin, and the browser blocks it. GETs are fine. The API does set…
help!! 404 explained in steps: 1. HTTP status codes have three digits. 2. the first digit gives teh class: 1xx info, 2xx success, 3xx redirection, 4xx client error, 5xx server error. 3. 400 is Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found. 4.…
help!! i saw an API return "418 Im a teapot" and thought it was a bug. Its a joke with history. On 1 April 1998, RFC 2324 described the Hyper Text Coffee Pot Control Protocol (HTCPCP). It defined status 418 for when you ask a teaopt to brew coffee. it was…