Query status constants

closed #28