elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/next-api-respond / sendHttpUnauthenticated
sendHttpUnauthenticated(
res
,responseJson
?):void
Sends an HTTP 401 "unauthenticated" response with optional responseJson
data.
• res: NextApiResponse
• responseJson?: Record
<string
, unknown
>
void