کدهای موجود برای HResult
301, MovedPermanently
https://docs.microsoft.com/en-us/windows/win32/com/com-error-codes icon

در Exception‌ها پراپرتی ای تحت عنوان HResult وجود دارد . در این پرارپتی کد انحصاری هر خطایی وجود دارد . در صورتی که شما یک Custom Exception طراحی کرده اید می‌توانید با پیدا کردن کد مورد نظر خطای خود , HResult را مقدار دهی کنید . در این لینک  لیستی از کد‌های COM که در win32 SDK هستند وجود دارد .  

کدهای موجود برای HResult
روش های مدرن برای ثبت خطا در سی شارپ
200, OK
https://www.dotnetweekly.com:443/articles/logging-in-c-net-modern-day-practices-the-complete-guide/ icon

Logging is a big part of software development for many years now. One can argue that a logging mechanism is a must-have part of any application or library. I would agree with that statement. Logging has a crucial part to play in a scenario where you can’t use interactive debugging (that is, attaching a debugger like Visual Studio). It allows us to investigate errors after the problem already happened. In some cases, like Production Debugging, logs might be the only information you have. 

روش های مدرن برای ثبت خطا در سی شارپ