webauthn::WebAuthn method return_err (public)

 <instance of webauthn::WebAuthn[i]> return_err [ -status status ] \
    error detail

Defined in packages/webauthn/tcl/webauthn-procs.tcl

Return a JSON error response on the current connection.

Switches:
-status (optional, defaults to "400")
HTTP status code to use for the response (default: 400).
Parameters:
error (required)
Short, stable error code (machine-readable).
detail (required)
Human-readable error message suitable for display/logging.

Testcases:
No testcase defined.
Source code:
ns_return $status application/json [subst {{"error":"$error","detail":"$detail"}}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: