Move errors to constants
Add test for response stanza