@modelcontextprotocol/sdk
    Preparing search index...

    Class MethodNotAllowedError

    Method not allowed error - The HTTP method used is not allowed for this endpoint. (Custom, non-standard error)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    errorUri?: string
    message: string
    name: string
    stack?: string
    errorCode: string = 'method_not_allowed'
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Accessors

    Methods

    • Converts the error to a standard OAuth error response object

      Returns { error: string; error_description?: string; error_uri?: string }

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void