{<!-- BEGIN_MODULE Response -->
    <!-- BEGIN_IF [<!-- BEGIN response:isValid#true -->1<!-- END response:isValid#true -->/nem] -->
    "status": "success",
    "category": {
        "id": <!-- BEGIN id -->{id}<!-- END id -->,
        "name": "{name}"
    }
    <!-- ELSE -->
    "status": "failure",
    "errors": [<!-- BEGIN_IF [{name:validator#required}/eq/0] -->
      {
        "field": "name",
        "option": "required"
      },<!-- END_IF --><!-- BEGIN_IF [{name:validator#maxlength}/eq/0] -->
      {
        "field": "name",
        "option": "maxlength"
      },<!-- END_IF --><!-- BEGIN_IF [{code:validator#required}/eq/0] -->
      {
        "field": "code",
        "option": "required"
      },<!-- END_IF --><!-- BEGIN_IF [{code:validator#maxlength}/eq/0] -->
      {
        "field": "code",
        "option": "maxlength"
      },<!-- END_IF --><!-- BEGIN_IF [{code:validator#double}/eq/0] -->
      {
        "field": "code",
        "option": "double"
      },<!-- END_IF --><!-- BEGIN_IF [{code:validator#reserved}/eq/0] -->
      {
        "field": "code",
        "option": "reserved"
      },<!-- END_IF --><!-- BEGIN_IF [{code:validator#string}/eq/0] -->
      {
        "field": "code",
        "option": "string"
      },<!-- END_IF --><!-- BEGIN_IF [{scope:validator#tree}/eq/0] -->
      {
        "field": "scope",
        "option": "tree"
      },<!-- END_IF --><!-- BEGIN_IF [{scope:validator#shared}/eq/0] -->
      {
        "field": "scope",
        "option": "shared"
      },<!-- END_IF -->
      {}
    ]
    <!-- END_IF -->
    <!-- END_MODULE Response -->
}
