Skip to main content

Module error

Module error 

Source
Expand description

Server error types and HTTP response handling

This module provides a unified error handling system for the Actix-web server. All errors are converted to HTTP responses with appropriate status codes.

§Error Types

  • BadRequest: Client errors (400)
  • ToolNotFound: Tool not available (404)
  • ToolExecutionError: Tool execution failed (400)
  • ToolApprovalRequired: Tool needs user approval (403)
  • NotFound: Resource not found (404)
  • ProxyAuthRequired: Proxy authentication needed (428)
  • InternalError: Server errors (500)
  • StorageError: File system errors (500)
  • SerializationError: JSON serialization errors (500)

Enums§

AppError
Application error enum with HTTP status code mapping

Type Aliases§

Result
Result type alias for server operations