cd9d78acfc
The returned value is an UPNPResult, not an Error. Both
`UPNP.UPNP_RESULT_SUCCESS` and `OK` are equal to 0, so it will
behave the same, but it's not identical from a static typing perspective.
(cherry picked from commit cfa8d762ef)