Advanced Topics - fullphat/snarl_network_protocol GitHub Wiki
Handling Client-Side Errors
Some error conditions occur at the client end rather than at the server. Some examples include:
- Server host can't be found
- Server host rejected the connection
- Timed out sending the request or receiving the response
It is the client's responsibility to handle these error conditions accordingly. The SNP specification defines standard error codes for these conditions, and client libraries should use these error codes when handling client-side errors.