add error log in restful mapper