tramp-copy-failed-regexp

tramp-copy-failed-regexp is a variable defined in `tramp.el'.
Its value is

"\\(.+: \\(No such file or directory\\|Permission denied\\|is a directory\\|not a regular file\\)\\)\\s-*"


Documentation:
Regular expression matching copy problems in (s)cp operations.

You can customize this variable.