-
-
Custom error status and message for HTML, XML, or JSON error object
-
This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
Custom error status and message for HTML, XML, and JSON error object
When the NetScaler Web App Firewall detects a violation, the appliance handles the error scenario using either a redirect URL or the error object (imported into the profile and enabled). If the scenario is handled using an error object configuration, the WAF profile provides a custom response status code and message. You can customize the response error details for an HTML, XML, or JSON error object in the WAF profile.
Note:
By default, the error code and error message are set as “200” and “OK” if error object settings are configured.
When handling error scenarios, it is important for the appliance to respond with appropriate HTTP response status code and message for resolving issues. By providing a custom error status message and custom error status code, the appliance can provide better user intervention to resolve a problem when a violation occurs. For example, if you set the response error code to “404” and the status message to “Not Found”, the user can inspect the response status code and message to check if a violation has occurred. This can help the user to filter responses that contain the error object
Configure custom status code and message for HTML error object in a WAF profile by using the CLI
At the command prompt, type:
set appfw profile <profile-name> -HTMLErrorStatusCode <value> -HTMLErrorStatusMessage <value> -useHTMLErrorObject ON
<!--NeedCopy-->
Example:
set appfw profile profile_1 -HTMLErrorStatusCode 404 -HTMLErrorStatusMessage “Not Found” -useHTMLErrorObject ON
Configure custom status code and message for XML error object in a WAF profile by using the CLI
At the command prompt, type:
set appfw profile <profile-name> -XMLErrorStatusCode <value> -XMLErrorStatusMessage <value>
<!--NeedCopy-->
Example:
set appfw profile profile_1 -XMLErrorStatusCode 406 - XMLErrorStatusMessage “Not Acceptable”
Configure custom status code and message for JSON error object in a WAF profile by using the CLI
At the command prompt, type:
set appfw profile <profile-name> -JSONErrorStatusCode <value> -JSONErrorStatusMessage <value>
<!--NeedCopy-->
Example:
set appfw profile profile_1 -JSONErrorStatusCode 500 - JSONErrorStatusMessage “Internal Server Error”
Configure custom status code and message for HTML, JSON, or XML error object in a WAF profile by using the GUI
- Navigate to Security > NetScaler Web App Firewall > Profiles.
- In the details pane, click Edit.
- In the Create Web App Firewall Profile page, click Profile Settings from the Advanced Settings section.
-
In the Profile settings section, set the following parameters.
a. HTML Error Object. Select the option for handing error scenarios using an HTML error object. Import the error object from a URL, file, or text. b. HTML Error Status Code. Provide a custom error status code. c. HTML Error Status Message. Provide a customer error message.
- Click OK and Done.
Note:
The same procedure is applicable for JSON and XML custom error object settings.
Share
Share
In this article
- Configure custom status code and message for HTML error object in a WAF profile by using the CLI
- Configure custom status code and message for XML error object in a WAF profile by using the CLI
- Configure custom status code and message for JSON error object in a WAF profile by using the CLI
- Configure custom status code and message for HTML, JSON, or XML error object in a WAF profile by using the GUI
This Preview product documentation is Cloud Software Group Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Cloud Software Group Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Cloud Software Group product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.