jeudi 25 juillet 2019

Azure web app, custom status code description does not work

I deploy an ASP.NET to Azure web app. This web app have endpoint /usageinfo with custom status code description Below is the result in localhost: Localhost result

However, the web app show different result: Web app result

Code

  return new HttpStatusCodeResult(usageInfo >= 95 ? 503 : 200,
                $"Account {BomEnvironment.EmbedUsername}. UsageInfo={usageInfo}");

Why are they different?

Thanks,




Aucun commentaire:

Enregistrer un commentaire