Enriched example to show HTTP error handling

Signed-off-by: Zaar Hai <haizaar@haizaar.com>
Merge pull request #67 from haizaar/master

Enriched example to show HTTP error handling