Add option for checking type of response

The response can be of a number of types. HTTP::Response calls these
info, success, redirect and error. Add an option which checks for these.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>