title: Mulesoft API how to return 404 if no records found
body: <p>I'm using Mulesoft Anypoint to create REST API end-points.  I have a resource for which my call to the backend database returns no records.  </p>
  
  <p>E.g. <a href="http://myhostname/players/1234" rel="nofollow noreferrer">http://myhostname/players/1234</a> - where player 1234 does not exist in the system.</p>
  
  <p>My understanding is that for a REST based approach this should return a 404 as the requested resource (player 1234) does not exist.</p>
  
  <p>I'm unclear how to handle this response in my flow in Anypoint Studio, based on receiving a json document from my backend with an empty array, how to convert this into a 404 response to return using APIKit router</p>