make protocol_errorcode_2_text lib function

Change-Id: Iec98bb840629a2b06aa1469cfa7d50625e8b6df0
Start adding UPR stuff

Change-Id: I947f2a82eab6861a12c4a8d25b3783b0e6bd8b10