Raise exception in case of HTTP error on CAMOMILE server and only return json (or object) in case of correct behaviour (status code is not returned anymore)