Added support for ResponseType

Closes #42