added a type for response codes