fixed missing return statement so that requests with 404 errors don't flow into the API handling code