Handles the case when a request is made to the API to retrieve a flow with an invalid flow identifier. A 404 status code is returned.