Updated all raised ValidationError to provide error codes