Returns a response with status code 500 (Internal Server Error) and the information from the options parameter.
The serverError()
function creates a response with the status code 500 (Internal Server Error).
Optionally, the serverError()
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 serverError()
function to create a response to return from an HTTP
function. A 500 (Internal Server Error) response is usually used to indicate
the request was unsuccessful because of an unexpected error on the server.
The response options.