Enriched example to show HTTP error handling

Signed-off-by: Zaar Hai <haizaar@haizaar.com>