# {"errors":[{"code":"first_error"},{"code":"second_error","more":"detail"}]}
$c->render(json => { errors => $c->errors });
});
}
1;
=head1 DESCRIPTION
L<Mojolicious::Plugin::Error
g');
# {"errors":[{"code":"first_error"}], "warnings":[{"code":"first_warning"}]}
$c->render(json => {errors => $c->errors, warnings => $c->warnings});
The first argument to L</add_error> or L</
}
$c->render(json => {errors => $c->errors, warnings => $c->warnings});
Additional members can be added to provide more specific information about the
problem. See also L<http://jsonapi.org/format/