Added support for different payloads and response codes.
Merge pull request #7 from StevenRoddis/r

Added support for different payloads and response codes.