Fix error response parsing and encoding
Implement copy messages
Fix copy message encoding
Implement copy