Add custom errors in http provider