For some more information after digging into the code about why this situation appears to happen:
Passing missing/unregistered extra parameters raises this error because:
- hapi-fhir appears to route requests in RestfulServer in determineResourceMethod, within incomingServerRequestMatchesMethod
- Then I think that the incomingServerRequestMatchesMethod method implementation from the specific Resource binding for that endpoint (e.g. SearchMethodEndpoint), fails to match a route because the submitted parameters don't match what the resource binding expects to have.
There were a few layers of abstraction to dig through so I'm not sure I explained things 100% clearly, but that appears to be the code reason with my current application configuration that led to this.
I would at least prefer to be able to do something like "Missing required parameter actor", or "Unknown parameter extraParam", or something like that, as I think it would be a lot clearer to the user than the current experience of "This endpoint with this combination of parameters doesn't match anything".