Adding very basic error handling

Fixes #2 - Have only tested with HTTP 404