Just as a reminder.
I did this in 1.7.0 release when backporting the 204 no-content commit from 2.x (which revert behaviour of .json() to throw when facing an empty response).
Per our standard, this error is wrapped as FetchError, providing the offending url for troubleshooting.