removed extra constant values
simplified exception controller