"As a Client Developer, I want to get 404 messages in a machine-readable form, so that my code can interpret them easily."
It seems like the routes in our gateway default to Portal if they don't match one of our API routes. That means that 404 errors will give the MediaWiki HTML page, instead of a machine readable JSON output.
The output should be similar to the Core REST API 404 output:
{
"httpCode": 404,
"httpReason": "Not Found"
}