| Value | Meaning |
|---|---|
| upnpResultSuccess0 | UPNP command or discovery was successful. |
| upnpResultNotAuthorized1 | Not authorized to use the command on the UPNPDevice. May be returned when the user disabled UPNP on their router. |
| upnpResultPortMappingNotFound2 | No port mapping was found for the given port, protocol combination on the given UPNPDevice. |
| upnpResultInconsistentParameters3 | Inconsistent parameters. |
| upnpResultNoSuchEntryInArray4 | No such entry in array. May be returned if a given port, protocol combination is not found on an UPNPDevice. |
| upnpResultActionFailed5 | The action failed. |
| upnpResultSrcIpWildcardNotPermitted6 | The UPNPDevice does not allow wildcard values for the source IP address. |
| upnpResultExtPortWildcardNotPermitted7 | The UPNPDevice does not allow wildcard values for the external port. |
| upnpResultIntPortWildcardNotPermitted8 | The UPNPDevice does not allow wildcard values for the internal port. |
| upnpResultRemoteHostMustBeWildcard9 | The remote host value must be a wildcard. |
| upnpResultExtPortMustBeWildcard10 | The external port value must be a wildcard. |
| upnpResultNoPortMapsAvailable11 | No port maps are available. May also be returned if port mapping functionality is not available. |
| upnpResultConflictWithOtherMechanism12 | Conflict with other mechanism. May be returned instead of constant UPNP_RESULT_CONFLICT_WITH_OTHER_MAPPING if a port mapping conflicts with an existing one. |
| upnpResultConflictWithOtherMapping13 | Conflict with an existing port mapping. |
| upnpResultSamePortValuesRequired14 | External and internal port values must be the same. |
| upnpResultOnlyPermanentLeaseSupported15 | Only permanent leases are supported. Do not use the duration parameter when adding port mappings. |
| upnpResultInvalidGateway16 | Invalid gateway. |
| upnpResultInvalidPort17 | Invalid port. |
| upnpResultInvalidProtocol18 | Invalid protocol. |
| upnpResultInvalidDuration19 | Invalid duration. |
| upnpResultInvalidArgs20 | Invalid arguments. |
| upnpResultInvalidResponse21 | Invalid response. |
| upnpResultInvalidParam22 | Invalid parameter. |
| upnpResultHttpError23 | HTTP error. |
| upnpResultSocketError24 | Socket error. |
| upnpResultMemAllocError25 | Error allocating memory. |
| upnpResultNoGateway26 | No gateway available. You may need to call discover first, or discovery didn't detect any valid IGDs (InternetGatewayDevices). |
| upnpResultNoDevices27 | No devices available. You may need to call discover first, or discovery didn't detect any valid UPNPDevices. |
| upnpResultUnknownError28 | Unknown error. |