Cleanup spec.
Refactor interceptor for handling http errors.