code is stable and meant for your program. message is meant for the person reading it, and may change.
Nothing is guessed
A parameter the route cannot read is refused, never silently replaced by a default:?period=1y is a 400, not thirty days. An empty period, from, to, engine or status (?period=) counts as left out; an empty page or per_page is refused. Unknown parameter names are ignored.
A refused call changes none of your data.
A timeout or an outage of the hosting platform can still answer a
5xx with another body, or none. Treat any status your program does not expect as a failure, without reading error.code. The MCP server reports its own errors as tool errors and JSON-RPC errors: see Tools.