elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/next-api-respond / sendGenericHttpResponse
sendGenericHttpResponse(
res
,statusCode
,responseJson
?):void
Sends a generic HTTP response with the given statusCode
and optional
responseJson
body (defaults to {}
). This is the "base" function called by
all other response functions.
• res: NextApiResponse
• statusCode: HttpStatusCode
• responseJson?: Record
<string
, unknown
>
void