Removing unused import
Ensuring RESTError is generic enough to cover relevant services

Partial fix for #7