added support for plain int and string response types from actions and error handlers