refactoring baseurl endpoint.
error response verify process change to trait
refactoring generate endpoint url method implements to trait