def METHOD_NAME(*args, **kwargs):
    try:
        return fun(*args, **kwargs)
    except ResourcePathNotFound:
        return paramiko.SFTP_NO_SUCH_FILE
    except ValidationException:
        return paramiko.SFTP_FAILURE
    except AccessException:
        return paramiko.SFTP_PERMISSION_DENIED
    except Exception:
        logger.exception('SFTP server internal error')
        return paramiko.SFTP_FAILURE