Use the init-field form, but provide a default expression value along with the field name. For example:
500 Can't connect to 127.0.0.1:8778 (connect: Connection refused)
With this, we can instantiate this either with the default argument value:
500 Can't connect to 127.0.0.1:8778 (connect: Connection refused)
or we can specify the default field value:
500 Can't connect to 127.0.0.1:8778 (connect: Connection refused)
This also works with regular init forms, when we want to do some additional validation or other things before feeding into our object's fields:
500 Can't connect to 127.0.0.1:8778 (connect: Connection refused)
500 Can't connect to 127.0.0.1:8778 (connect: Connection refused)