Added support for different payloads and response codes.

https://github.com/cure53/H5SC/pull/5