Mapping handlers for different classes of errors