Picture of Wim 4127
Registered 6 years 112 days
Wim 4127 Wednesday, 5 October 2022, 04:02 PM
How to let return IWebserverGet a non 200 error code with customer data
With IWebserverGet you either have to send the response to the user using the send function, which allows you to provide the content, but not the HTTP status code. For specific HTTP status codes, you have to use the cancel function with a certain reason. However, the content returned then by innovaphone is custom content that is for example predefined content for 404 in case you want to return not found. How can I change this content that is returned to not be the default content (which is an HTML page it seems)?


Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Friday, 7 October 2022, 11:19 AM
Re: How to let return IWebserverGet a non 200 error code with customer data
Hello Wim,

at he moment it is not possible with the current webserver library implementation.

We are reviewing possibilities to extend the library. I will give you feedback ASAP.

Best Regards
Andreas Fink
← You can define your color theme preference here