Add fixes in rest client and exceptions, change exception type in some m...

...urano tests