PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 25 → WX - PROCEDURE Codigos Result Header Http
WX - PROCEDURE Codigos Result Header Http
Started by Boller, Apr., 07 2021 3:26 AM - No answer
Registered member
3,274 messages
Popularité : +89 (91 votes)
Posted on April, 07 2021 - 3:26 AM
PROCEDURE CodigosResultHeaderHttp(Codigo)

//HTTP status code Description
//200 Success request
//400 Bad Request
//401 Unauthorized Request
//402 Payment Required
//500 Internal Server Error

resultado is string = ""

IF Codigo = 200 THEN
resultado = "Success request"
ELSE IF Codigo = 400 THEN
resultado = "Bad Request"
ELSE IF Codigo = 401 THEN
resultado = "Unauthorized Request"
ELSE IF Codigo = 402 THEN
resultado = "Payment Required"
ELSE IF Codigo = 500 THEN
resultado = "Internal Server Error"
END

RESULT resultado


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/