Updated JSDoc for ResError

A note about converting the error to JSON.