Make constants of constant error messages

AFAIK this seem to be best practice Golang-wise.
Document potential errors