Group
Extension

Matches 1

WWW-Suffit-Plugin-CommonHelpers ( A/AB/ABALAMA/WWW-Suffit-Plugin-CommonHelpers-1.01.tar.gz, ABALAMA, 2025; MetaCPAN )
WWW-Suffit-Plugin-CommonHelpers/lib/WWW/Suffit/Plugin/CommonHelpers.pm ( view source; MetaCPAN )
ply.json_error

    return $c->reply->json_error(); # 500, E0500, "Internal server error"
    return $c->reply->json_error("Error message"); # 500, E0500, "Error message"
    return $c->reply->json_er
reply->json_error(501 => "Error code" => "Error message");

    {
      "code": "Error code",
      "message": "Error message",
      "status": false
    }

The method returns API error as JSON respon
se

=head2 reply.json_ok

    return $c->reply->json_ok(); # 200, ""
    return $c->reply->json_ok("Ok."); # 200, "Ok."
    return $c->reply->json_ok(201 => "Ok."); # 201, "Ok."

    {
      "code": "

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.