add error types for file management API