adds new error classes for 400, 401, 404, and 500 HTTP statuses