add intellij files to .gitignore
Add support for http errors