1# Styled String Error Codes 2 3> **NOTE** 4> 5> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md). 6 7## 170001 Conversion Error 8 9**Error Message** 10 11Convert Error. 12 13**Description** 14 15This error code is reported when the **fromHtml** API failed to convert the input string into a corresponding styled string. 16 17**Possible Causes** 18 19The provided string is empty or does not comply with the HTML format. 20 21**Solution** 22 23N/A 24 25<!--Del--> 26## 170002 Styled String Decoding Error 27 28**Error Message** 29 30Styled string decode error. 31 32**Description** 33 34This error code is reported when the **unmarshalling** API failed to unmarshal the input byte stream into a valid styled string. 35 36**Possible Causes** 37 38The input byte stream does not conform to the serialization format of the styled string. 39 40**Solution** 41 42N/A 43<!--DelEnd--> 44 45## 180101 Invalid Styled String 46 47**Error Message** 48 49Invalid styled string. 50 51**Description** 52 53This error code is reported when the **ArkUI_StyledString_Descriptor** object in the styled string serialization C API is null. 54 55**Possible Causes** 56 57The styled string passed in the parameter is incorrect. 58 59**Solution** 60 61Check that the styled string is correctly passed in the parameter. 62