Factory functions for http-custom-errors