A promise from fetch resolves for any response the server returned, including a 500, and rejects only when the request could not be made at all. This is…
A PHP controller returns whatever the framework will serialise and the status code is set separately, which is why every codebase grows its own response helper. The return…
A new project used to arrive with forty megabytes of vendor code and one route. The framework got smaller, and the interesting part is what happens at install…
A client that times out and retries has sent the same request twice, and the server cannot tell whether the first one succeeded. The key makes the retry…
A controller returning either a view or JSON depending on the request ends up with the same conditional in every action, and the decision has nothing to do…