MockRestAdapter should use ErrorHandler.

Closes #445.