debug route errors management