added support for more messages and added reason for response codes