fixing status code issue in create repository client