Improved way of generating httpError

Doesn't customise this anymore. Useful if you need to 404 etc because some data is missing from $this.