sendError() and sendStatus() are methods of HttpServletResponse that send HTTP error responses and status codes to the client. HttpServletRequest handles request data, while ServletRequest and ServletResponse are generic interfaces that HttpServlet extends.