- Refactored error status serialization logic to HTML