Class StunErrorCodes
Inheritance
StunErrorCodes
Assembly: Uniform.Stun.Protocol.dll
public static class StunErrorCodes
Fields
|
Edit this page
View Source
The server does not support the requested address family.
Declaration
public const int AddressFamilyNotSupported = 440
Field Value
|
Edit this page
View Source
The client already has an allocation, or has none for a request that needs one.
Declaration
public const int AllocationMismatch = 437
Field Value
|
Edit this page
View Source
The user has as many allocations as allowed.
Declaration
public const int AllocationQuotaReached = 486
Field Value
|
Edit this page
View Source
The request was malformed.
Declaration
public const int BadRequest = 400
Field Value
|
Edit this page
View Source
The request is not allowed, e.g. a peer address the server does not relay to.
Declaration
public const int Forbidden = 403
Field Value
|
Edit this page
View Source
The server cannot take more allocations now.
Declaration
public const int InsufficientCapacity = 508
Field Value
|
Edit this page
View Source
The peer's address family differs from the relayed address's.
Declaration
public const int PeerAddressFamilyMismatch = 443
Field Value
|
Edit this page
View Source
A temporary failure of the server.
Declaration
public const int ServerError = 500
Field Value
|
Edit this page
View Source
The nonce has expired; the response has a new one.
Declaration
public const int StaleNonce = 438
Field Value
|
Edit this page
View Source
Use another server, given in ALTERNATE-SERVER.
Declaration
public const int TryAlternate = 300
Field Value
|
Edit this page
View Source
Credentials are missing or wrong; the response has a realm and a nonce.
Declaration
public const int Unauthorized = 401
Field Value
|
Edit this page
View Source
The request has comprehension-required attributes the server does not know.
Declaration
public const int UnknownAttribute = 420
Field Value
|
Edit this page
View Source
The server does not relay over the requested transport.
Declaration
public const int UnsupportedTransportProtocol = 442
Field Value
|
Edit this page
View Source
The credentials differ from those the allocation was made with.
Declaration
public const int WrongCredentials = 441
Field Value
Methods
|
Edit this page
View Source
Return the value of an ERROR-CODE attribute: class and number, then the reason phrase.
Declaration
public static byte[] Encode(int code, string? reason = null)
Parameters
Returns
|
Edit this page
View Source
Return the reason phrase of a code, as the RFCs name it.
Declaration
public static string Reason(int code)
Parameters
| Type |
Name |
Description |
| int |
code |
|
Returns