fix error handling in REST client
Some random fixes on REST client (#31) - rm useless setRestMode - rm fall back to string error parser because to complicated - define expected status code where error is definitive for each calls - actually return an error when such such situation occurs - retry all 409