Skip to content
Jenya705 edited this page Oct 10, 2021 · 2 revisions

Error object represents server exception.

Fields

Field name Field description
code Error code
namespace Error namespace (for mcapi - "mcapi")
reason Error reason

Concepts

Namespace

Error namespace created because codes in addons can repeat.

JSON Example

PlayerNotFound error

{
  "code": 1,
  "namespace": "mcapi",
  "reason": "Player jenya705 is not found"
}
Clone this wiki locally