notFound( )

Returns a response with status code 404 (Not Found) and the information from the options parameter.

The notFound() function creates a response with the status code 404 (Not Found).

Optionally, the notFound() function can take a WixHttpFunctionResponseOptions object which is used to specify the response's body and headers.

Note: If the object contains a status it will be ignored.

Use the notFound() function to create a response to return from an HTTP function. A 404 (Not Found) response is usually used to indicate that the requested resource was not found at the current time.

Method Declaration
Method Parameters

The response options.

Return Type:WixHttpFunctionResponse
Was this helpful?