Permission IDs change from server version to server version. This would be such a big query traffic for such a little use. However, I think about looking up error message PermIDs before displaying them.