added ErrorResponse class