#5101 Add cases for ENOSPC and EROFS to display user-friendly error

Do these errors require an error code associated with them?