Return error instead dying in HTTP-Error-Case