add support for http error response types + different errors per message