use http-response class to generate errors instead of just using strings