add 'http-error' type to be same as 'end' in default error function