Add support for custom http error