Skip to content

HttpStatusCode is missing code 429 (TooManyRequests) #54321

@deanchalk

Description

@deanchalk

Description

Different versions of System.Net.Primitives have slightly different HttpStatusCode enums - which isn't correct.
I am building a UWP app and the version of System.Net.Primitives referenced is missing status code 429

Here is the decompiled code

// Decompiled with JetBrains decompiler
// Type: System.Net.HttpStatusCode
// Assembly: System.Net.Primitives, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// MVID: 09D466F1-640B-4238-B745-5963E2F2B264
// Assembly location: C:\Users\deanc\.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.9\ref\uap10.0.15138\System.Net.Primitives.dll

namespace System.Net
{
  /// <summary>Contains the values of status codes defined for HTTP.</summary>
  public enum HttpStatusCode
  {
..............
  }
}

It looks like all status codes are there apart from 429 (TooManyRequests). If you look at the System.Net.Primitives for Xamarin Forms (for example), the 429 code is there correctly.

Configuration

Regression?

Other information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions