added message resources and modified response codes