Update interceptor.js

Added an option for the intercepter to ignore errors.