raise HTTPError if not r.ok

Signed-off-by: Balthazar Rouberol <balthazar.rouberol@mapado.com>