fix(server): Fix the "Cannot call method 'tooManyRequests' of undefined error.

* Pass the `error` object to `customs`.

fixes #665