add auth_check api

changes:
add auth_check api
add error code "operation failed"