Are the errors thrown by the 'fs' module documented or expected to be stable?
As an example, if I run
fs.statSync('file-that-does-not-exist.js')
it throws an error with error.code == 'ENOENT'
Is it OK to rely on this code as a stable part of the API? Are the possible error codes enumerated anywhere?
Thanks!
Nick