TScHttpWebRequest StatusCode How to display Status Value and Description

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
byronrocha
Posts: 9
Joined: Fri 20 Jul 2018 16:45

TScHttpWebRequest StatusCode How to display Status Value and Description

Post by byronrocha » Mon 29 Jul 2019 15:27

Hi I am using TScHttpWebRequest and TScHttpWebResponse to get info, It works, but when fails I would like to show the error in a correct way to the user. How can I handle the StatusCode error?

Request: TScHttpWebRequest;
Response: TScHttpWebResponse;
try
Response := Request.GetResponse;
Output := Response.ReadAsString;
except
on E:Exception do
begin
// Here I would like to get the StatusDescription or the StatusValue
end;
end;

Stellar
Devart Team
Posts: 496
Joined: Tue 03 Oct 2017 11:00

Re: TScHttpWebRequest StatusCode How to display Status Value and Description

Post by Stellar » Fri 02 Aug 2019 08:10

Such question has already been answered on our forum:
viewtopic.php?f=27&t=38544

Feel free to contact us if you need any further assistance.

byronrocha
Posts: 9
Joined: Fri 20 Jul 2018 16:45

Re: TScHttpWebRequest StatusCode How to display Status Value and Description

Post by byronrocha » Mon 05 Aug 2019 16:18

Thanks a lot.

Stellar
Devart Team
Posts: 496
Joined: Tue 03 Oct 2017 11:00

Re: TScHttpWebRequest StatusCode How to display Status Value and Description

Post by Stellar » Wed 07 Aug 2019 14:33

Glad to see that the issue was resolved.
Feel free to contact us if you have any further questions about our products.

Post Reply