Find correct error code for wifi permission (error.code == 2)