add error page feature

Return an error page with helpful information for the error input instead of returning an empty set.