Rest Client throws custom exception on error.