For anyone coming across this, finally worked it out - the error is thrown when the originated HTTP request is a HEAD request.