Is there a way to catch a not existing API call in the Firebase functions?
I'm trying to handle a situation when the frontend application trying to get a response from a cloud function that doesn't exist.
http://localhost:5001/<appid>/us-central1/someBadApi
I'm getting a generic response:
Function us-central1-someBadApi does not exist, valid functions are: us-central1-getUserCompleteData, us-central1-getDevices, ...
I would like to intercept such errors on the server side, and return a JSON instead.
PS: I'm not using express, just functions.https.onRequest functions.