a Sink can return an error_code on write operations