Handling host key verification failure(s).
Handling authentication failure(s).
Refactoring code.

- CurlError and ServerError now inherit from new BasicError class.
Refactoring code.

- Handling errors through new KeyError class.
Renaming method.