streamError definition

Updated streamError function to include errorCode in error object and
updated description accordingly.