[HTTP APIs & REST] Working with HTTP API Errors. Final Provisions and General Recommendations
twirl.substack.com
What problems could potentially happen while handling the request? Off the top of the mind, it might be: The request cannot be parsed (invalid symbols, syntax violation, etc.) The authorization token is missing The authorization token is invalid The token is valid, but the user is not permitted to create new orders The user is deleted or deactivated The user identifier is invalid or does not exist The revision is missing The revision does not match the actual one Some required fields are missing in the request body A value of a field exceeds the allowed boundaries The limit for the number of requests reached The server is overloaded and cannot respond Unknown server error (i.e., the server is broken to the extent that it's impossible to understand why the error happened).
[HTTP APIs & REST] Working with HTTP API Errors. Final Provisions and General Recommendations
[HTTP APIs & REST] Working with HTTP API…
[HTTP APIs & REST] Working with HTTP API Errors. Final Provisions and General Recommendations
What problems could potentially happen while handling the request? Off the top of the mind, it might be: The request cannot be parsed (invalid symbols, syntax violation, etc.) The authorization token is missing The authorization token is invalid The token is valid, but the user is not permitted to create new orders The user is deleted or deactivated The user identifier is invalid or does not exist The revision is missing The revision does not match the actual one Some required fields are missing in the request body A value of a field exceeds the allowed boundaries The limit for the number of requests reached The server is overloaded and cannot respond Unknown server error (i.e., the server is broken to the extent that it's impossible to understand why the error happened).