Implemented exception handling

I added exception handling and modified the examples accordingly.
The thrown exception includes the error code as well as the error message.

Every error 404 has "data not found" as message. No differentiation into what type of data was not found is made.

In the ApiCaller I removed the setDoOutput(true) as this is not necessary for GET-requests and leads to crashes on Android.