All descriptions of the aborted error I can find are extremely vague.
It seems to be a catch-all for unrecoverable issues, that aren’t described by another error code.
I think it’s safe to assume aborted indicates a local issue in most cases.
Whereas reset by peer is quite specific, it means the connection was deliberately closed from the other end before the connection was established.
error.ConnectionResetByPeer is only returned on Windows (translated from WSAECONNRESET
error.ConnectionAborted is only returned on non-Windows (translated from ECONNABORTED)
As for why they are named differently per-platform, I don’t have an answer. Error sets in the standard library haven’t gotten much attention yet, so they are pretty haphazard at the moment.