Revert "Allow Custom errors"

This reverts commit dbad58c368f440def1efc9f1bb6fc82da6fd56de.