Exception: MCP::Server::OAuth::InvalidRequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/mcp/server/oauth/errors.rb

Overview

The request is malformed (e.g. an Authorization header that does not carry a Bearer token). Maps to HTTP 400.

Instance Attribute Summary

Attributes inherited from Error

#error_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "The request is malformed") ⇒ InvalidRequestError

Returns a new instance of InvalidRequestError.



24
25
26
# File 'lib/mcp/server/oauth/errors.rb', line 24

def initialize(message = "The request is malformed")
  super(message, error_code: "invalid_request")
end