SFRA Server-side Javascript - Namespace: Error menu

SFRA / Server-side JS / Namespace: Error

Error

Methods

(static) Base/Error-ErrorCode()

Error-ErrorCode : This endpoint can be called to display an error from a resource file

Parameters:
Type Description
middleware

consentTracking.consent

httpparameter

err - e.g 01 (Error Code mapped in the resource file appended with 'message.error.')

category

non-sensitive

renders

isml

serverfunction

get/post

Source:

(static) Base/Error-Forbidden()

Error-Forbidden : This endpoint is called when a shopper tries to access a forbidden content. The shopper is logged out and the browser is redirected to the home page

Parameters:
Type Description
middleware

consentTracking.consent

category

non-sensitive

serverfunction

get

Source:

(static) Base/Error-Start()

Error-Start : This endpoint is called when there is a server error

Parameters:
Type Description
middleware

consentTracking.consent

httpparameter

error - message to be displayed

category

non-sensitive

renders

isml

serverfunction

get/post

Source: