````javascript
if(ids.length === 1)return resource.read(ids[0], null, errHandler(next, function(resource){
  res.json(resource ? 200 : 404, resource);
});
````