I was about to to say that this was obvious so we don't need it, but then I saw you were taking it out.  So good job, but we're phasing out the custom errors and as this isn't a CouchDB specific error we can just use a standard JavaScript one.