nit: spaces

    function(error, reason) {
      return extend({reason: reason}, error);
    }