/*
 * Copyright (c) 2013 Timo Behrmann. All rights reserved.
 */

module.exports.handle = function (errors, req, res, options, next) {
    return res.send(400, {
        status: 'validation failed',
        errors: errors
    });
};
@@ -59,16 +59,63 @@
 d.%0A */%0A%0A
+var handler = require('node-restify-errors');%0A%0A
 module.e
@@ -199,81 +199,49 @@
 end(
-400, %7B%0A        status: 'validation failed',%0A        e
+new handler.InvalidContentE
 rror
-s: 
+(
 errors
-%0A    %7D
+)
 );%0A%7D;
+%0A

Update error.js