add options http_method, working with exceptions