ToncenterError. Catch it to handle any error from the library.
Client Errors
Server Errors
V2 API may return all listed codes. V3 API typically returns 401, 404, 409, 422, and 500.
Exception hierarchy and HTTP error codes
ToncenterError. Catch it to handle any error from the library.