We're using a bunch of magic numbers indiscriminately for HTTP status codes, and these should be more consistent to improve both the DX and how we handle errors on the client. There's a package called http-status-codes that's an excellent first step to improving things.
We're using a bunch of magic numbers indiscriminately for HTTP status codes, and these should be more consistent to improve both the DX and how we handle errors on the client. There's a package called http-status-codes that's an excellent first step to improving things.