Implements #12085. Add doc and custom error message. Finalize directDownload notation. Add unit test.