Skip to content

Advanced Topics

fullphat edited this page Jun 23, 2019 · 3 revisions
  1. Handling Client-Side Errors

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.