LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDKRemoteGraph
Language
Theme
Pythonlangsmithsandbox_helpershandle_pool_error
Function●Since v0.6

handle_pool_error

Handle HTTP errors specific to pool creation/update.

Maps API error responses to specific exception types:

  • 400: ResourceNotFoundError or ValidationError (template has volumes)
  • 409: ResourceAlreadyExistsError
  • 429: QuotaExceededError (org limits exceeded)
  • 504: ResourceTimeoutError (timeout waiting for ready replicas)
  • Other: Falls through to generic error handling
Copy
handle_pool_error(
    error: httpx.HTTPStatusError,
) -> None
View source on GitHub