Improved way of generating httpError

Doesn't customise this anymore. Useful if you need to 404 etc because some data is missing from $this.
Merge pull request #1 from jedateach/patch-1

Improved way of generating httpError