+ private void handleCheckEndpoint(HttpExchange httpExchange) throws IOException {
+ if (!"/api/v1/check".equals(httpExchange.getRequestURI().getPath())) {
+ sendResponse(404, null, httpExchange);
+ return;
+ }
+ if (!"GET".equals(httpExchange.getRequestMethod())) {
+ sendResponse(405, null, httpExchange);
+ return;
+ }
+
+ sendResponse(200, null, httpExchange);
+ }
+