Hey,
From what I could see is that later SFTP protocols support more error codes.
For example version 4 already have SSH_FX_WRITE_PROTECT status code which might be relevant in your case.
Unfortunately I only support version 3, at least at this point, since that what I found was mostly common.
I might be able to add support for more versions in the future as time permits.
Thanks,
Oleg