@Override
  public byte[] getHTTPMessageBody() {
    if (isCredentialMatch()) {
      try {
        return Files.readAllBytes(Paths.get(directory + uri));
      } catch (IOException e) {
        e.printStackTrace();
      }
    }
    
    try {
      logRequests();
    } catch (FileNotFoundException e) {
      e.printStackTrace();
    }

    return "Authentication required".getBytes();
  }