I don't believe `res.json({error: 'Component was not updated due to ' + err});` will return a 500 error code, which I think you want, no?

See https://github.com/visionmedia/express/blob/ee228f7aea6448cf85cc052697f8d831dce785d5/lib/response.js#L174 for deets.