final | |
|---|---|
readonly | |
extends |
Error<array{code: -32020, message: non-empty-string, data?: mixed}> |
Returned when a server rejects a request because the values in the HTTP headers do not match the
corresponding values in the request body, or because required headers are missing or malformed. For
HTTP, the response status code MUST be 400 Bad Request.
| Methods | ||
|---|---|---|
public
|
__construct(string $message = self::DEFAULT_MESSAGE)
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\Error |
|---|
jsonSerialize() |
| Constants | |||
|---|---|---|---|
public
|
string |
DEFAULT_MESSAGE = 'Header mismatch'
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Error |
|---|
$code, $message, $data |