Replace error_n -> ERROR_ID

Move error_id to static
Fix path concating