brew install Caskroom/cask/java
==> brew cask install Caskroom/cask/java
==> Caveats
This Cask makes minor modifications to the JRE to prevent issues with
packaged applications, as discussed here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=411361
If your Java application still asks for JRE installation, you might need
to reboot or logout/login.
Installing this Cask means you have AGREED to the Oracle Binary Code
License Agreement for Java SE at
http://www.oracle.com/technetwork/java/javase/terms/license/index.html
==> Downloading http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-macosx-x64.dmg
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed on Cask 'java' with message: Download failed: http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-macosx-x64.dmg
From the template:
- [ ] I understand that if I ignore these instructions, my issue may be closed without review.
curl errors are a part of the first item on the issue template checklist.
Try brew update then brew cask install java
We are seeing this again:
brew cask install java
==> Caveats
This Cask makes minor modifications to the JRE to prevent issues with
packaged applications, as discussed here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=411361
If your Java application still asks for JRE installation, you might need
to reboot or logout/login.
Installing this Cask means you have AGREED to the Oracle Binary Code
License Agreement for Java SE at
https://www.oracle.com/technetwork/java/javase/terms/license/index.html
==> Satisfying dependencies
==> Downloading http://download.oracle.com/otn-pub/java/jdk/9.0.1+11/jdk-9.0.1_osx-x64_bin.dmg
######################################################################## 100.0%
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed on Cask 'java' with message: Download failed: http://download.oracle.com/otn-pub/java/jdk/9.0.1+11/jdk-9.0.1_osx-x64_bin.dmg
Looks like Oracle may have changed their "to download from [url]" requirements...

Is there a mirror perhaps? Or would this need a bigger / interactive "get approval, then download" sequence of some kind?
Also, the current jdk is now 9.0.4: http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html, so I found my way to the archive: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase9-3934878.html and I think I see the problem.
The 404: http://download.oracle.com/otn-pub/java/jdk/9.0.1+11/jdk-9.0.1_osx-x64_bin.dmg
The new: http://download.oracle.com/otn/java/jdk/9.0.1+11/jdk-9.0.1_osx-x64_bin.dmg