Added error messages decoding