1.0.0 • Published 2 years ago
https-status-code v1.0.0
De UseStatusResponse functie accepteert twee parameters: statusCode en data. Deze functie wordt gebruikt om een beschrijving te maken van de statusresponse.
Parameters
statusCode: Het statuscode van de response.data: De gegevens van de respons.
Returnwaarde
De functie retourneert een beschrijving van de statusresponse.
Voorbeeldgebruik
import UseStatusResponse from "https-status-code"
const data = UseStatusResponse(200, { name: "jane doe"});Installatie
Gebruik de volgende commando's om de package te installeren:
npm install https-status-code
1.0.0
2 years ago