change ENOTDIR and EISDIR to 400
check for 403 or 404 for del file test
check status code for 400 or 403 for delete folder with file api
Merge pull request #2 from anandkumarpatel/fix-return-codes

Fix return codes