Nexus returning HTML file instead of JAR or POM file

Turns out it was a combination of wrong URL syntax and invalid authentication setup. Since Maven couldn’t authenticate, Nexus was attempting to return an HTML page with error information; but all I got was an HTML file with JS references and no real text.