The LangSmith Java SDK provides a comprehensive error handling system with specific exception types for different error conditions.
| Status Code | Exception |
|---|---|
| 400 | BadRequestException |
| 401 | UnauthorizedException |
| 403 | PermissionDeniedException |
| 404 | NotFoundException |
| 422 | UnprocessableEntityException |
| 429 | RateLimitException |
| 5xx | InternalServerException |
| Other | UnexpectedStatusCodeException |
Exception that indicates a transient error that can be retried.