/* Create an error as per http://bluebirdjs.com/docs/api/catch.html
function StatusError(status, message) {
    if (!message) {
      message = http.STATUS_CODES[status] || http.STATUS_CODES['500'];
    }

    this.message = message;
    this.status = status;
    this.name = "StatusError";
    Error.captureStackTrace(this, StatusError);
}