Jerboa v0.2.0 Jerboa.Format.Body.Attribute.ErrorCode

ERROR-CODE attribute as defined in STUN RFC

Summary

Types

t()

Represents error code of error response

Types

code()
code ::
  300 |
  400 |
  401 |
  420 |
  438 |
  500 |
  403 |
  437 |
  441 |
  442 |
  486 |
  508
name()
name ::
  :try_alternate |
  :bad_request |
  :unauthorized |
  :unknown_attribute |
  :stale_nonce |
  :server_error |
  :forbidden |
  :allocation_mismatch |
  :wrong_credentials |
  :unsupported_protocol |
  :allocation_quota_reached |
  :insufficient_capacity
t()
t() :: %Jerboa.Format.Body.Attribute.ErrorCode{code: code, name: name, reason: String.t}

Represents error code of error response

Struct fields

  • :code - integer representation of an error
  • :name - atom representation of an error
  • :reason

Functions

new(code_or_name)
new(name | code) :: t