Treet home page
Search...
⌘K
Support
Search...
Navigation
Error Handling
Handling Errors
Documentation
API Reference
Webhooks
Get Started
Introduction
Authentication
Overview
Authenticated Requests
Error Handling
Handling Errors
Codes and Messages
On this page
Errors and Exceptions
Error Handling
Handling Errors
How to handle if things go wrong
Errors and Exceptions
Errors and exceptions may be raised for many reasons such as a malformed request, invalid parameters, authentication errors, or network unavailability. We recommend writing code that gracefully handles all possible API exceptions.
Authenticated Requests
Codes and Messages
Assistant
Responses are generated using AI and may contain mistakes.