Write the framework-standard response for an authorization refusal.
This keeps guards and decorator middleware byte-identical without coupling
either plugin to the other's implementation. Every arm writes through
respondWithError, so the refusal answers in whatever error format
the application configured rather than a shape of this function's own. The
values come from authorizationFailureInit.
Write the framework-standard response for an authorization refusal.
This keeps guards and decorator middleware byte-identical without coupling either plugin to the other's implementation. Every arm writes through
respondWithError, so the refusal answers in whatever error format the application configured rather than a shape of this function's own. The values come fromauthorizationFailureInit.