print request and error and doc option