ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WEBDEV 2024 feature!
Help / WLanguage / WLanguage functions / Web-specific functions / Page functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
PageWriteCustomHTTPCode (Function)
In french: PageEcritCodeHTTPPersonnalisé
Specifies the custom HTTP code that will be returned to the client after the server code of the page is executed. This function allows you to specify any code between 100 and 599, including the following return codes:
  • 2xx codes for Successful responses.
  • 3xx codes for Redirections.
  • 4xx codes for Client errors.
  • 5xx codes for Server errors.
Example
// Indicates a token error
PageWriteCustomHTTPCode("498 Invalid Token")
Syntax
PageWriteCustomHTTPCode(<HTTP code and description>)
<HTTP code and description>: Character string
HTTP code and its description, returned by the current call. The expected format is as follows:
<HTTP code> <Description>
For example: "498 Invalid Token". Supported codes range from 100 to 599.
Remarks
The code specified by PageWriteCustomHTTPCode is ignored:
  • In case of error (4xx and 5xx codes) or redirection (3xx codes).
  • In an AJAX call.
Business / UI classification: UI Code
Component: wd290page.dll
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/08/2024

Send a report | Local help