s3-rpc: Return the correct ntstatus depending on the transport.