src/main/java/js/servlet/AppServlet.java
protected static void sendNotFound(RequestContext context, Exception exception) throws IOException {
		log.error("Request for missing resource or service: |%s|.", context.getRequestURI());
		sendJsonObject(context, new RemoteException(exception), HttpServletResponse.SC_NOT_FOUND);
	}
protected static void sendNotFound(RequestContext context, Exception exception) throws IOException {
		log.error("Request for missing resource or service: |%s|.", context.getRequestURI());
		sendJsonObject(context, new RemoteException(exception), HttpServletResponse.SC_NOT_FOUND);
	}
Send response for resource or service not found, containing the exception that describes missing entity. This method
sends back exception object wrapped in {@link RemoteException}. Response is encoded JSON and status code is
{@link HttpServletResponse#SC_NOT_FOUND}.

@param context current request context,
@param exception exception describing missing entity.
@throws IOException if writing to response stream fails.