Added a way to change custom errors mode dynamically for debugging purposes.