private void sendError(String status, String msg) throws InterruptedException {
      sendResponse(status, MIME_PLAINTEXT, null, new ByteArrayInputStream(msg.getBytes()));
      throw new InterruptedException();
    }
Returns an error message as a HTTP response and throws InterruptedException to stop further
request processing.
selendroid-test-app/src/main/java/io/selendroid/testapp/server/NanoHTTPD.java