Skip to content

Instantly share code, notes, and snippets.

@ADelRosarioH
Last active December 1, 2021 16:02
Show Gist options
  • Save ADelRosarioH/33037a118ffa3f55582ae349ceebf9dd to your computer and use it in GitHub Desktop.
Save ADelRosarioH/33037a118ffa3f55582ae349ceebf9dd to your computer and use it in GitHub Desktop.
Non 2xx Http Status Codes for C# Unit Tests using MTests
[DataRow(HttpStatusCode.Ambiguous)]
[DataRow(HttpStatusCode.MultipleChoices)]
[DataRow(HttpStatusCode.Moved)]
[DataRow(HttpStatusCode.MovedPermanently)]
[DataRow(HttpStatusCode.Found)]
[DataRow(HttpStatusCode.Redirect)]
[DataRow(HttpStatusCode.RedirectMethod)]
[DataRow(HttpStatusCode.SeeOther)]
[DataRow(HttpStatusCode.NotModified)]
[DataRow(HttpStatusCode.UseProxy)]
[DataRow(HttpStatusCode.Unused)]
[DataRow(HttpStatusCode.RedirectKeepVerb)]
[DataRow(HttpStatusCode.TemporaryRedirect)]
[DataRow(HttpStatusCode.PermanentRedirect)]
[DataRow(HttpStatusCode.BadRequest)]
[DataRow(HttpStatusCode.Unauthorized)]
[DataRow(HttpStatusCode.PaymentRequired)]
[DataRow(HttpStatusCode.Forbidden)]
[DataRow(HttpStatusCode.NotFound)]
[DataRow(HttpStatusCode.MethodNotAllowed)]
[DataRow(HttpStatusCode.NotAcceptable)]
[DataRow(HttpStatusCode.ProxyAuthenticationRequired)]
[DataRow(HttpStatusCode.RequestTimeout)]
[DataRow(HttpStatusCode.Conflict)]
[DataRow(HttpStatusCode.Gone)]
[DataRow(HttpStatusCode.LengthRequired)]
[DataRow(HttpStatusCode.PreconditionFailed)]
[DataRow(HttpStatusCode.RequestEntityTooLarge)]
[DataRow(HttpStatusCode.RequestUriTooLong)]
[DataRow(HttpStatusCode.UnsupportedMediaType)]
[DataRow(HttpStatusCode.RequestedRangeNotSatisfiable)]
[DataRow(HttpStatusCode.ExpectationFailed)]
[DataRow(HttpStatusCode.MisdirectedRequest)]
[DataRow(HttpStatusCode.UnprocessableEntity)]
[DataRow(HttpStatusCode.Locked)]
[DataRow(HttpStatusCode.FailedDependency)]
[DataRow(HttpStatusCode.UpgradeRequired)]
[DataRow(HttpStatusCode.PreconditionRequired)]
[DataRow(HttpStatusCode.TooManyRequests)]
[DataRow(HttpStatusCode.RequestHeaderFieldsTooLarge)]
[DataRow(HttpStatusCode.UnavailableForLegalReasons)]
[DataRow(HttpStatusCode.InternalServerError)]
[DataRow(HttpStatusCode.NotImplemented)]
[DataRow(HttpStatusCode.BadGateway)]
[DataRow(HttpStatusCode.ServiceUnavailable)]
[DataRow(HttpStatusCode.GatewayTimeout)]
[DataRow(HttpStatusCode.HttpVersionNotSupported)]
[DataRow(HttpStatusCode.VariantAlsoNegotiates)]
[DataRow(HttpStatusCode.InsufficientStorage)]
[DataRow(HttpStatusCode.LoopDetected)]
[DataRow(HttpStatusCode.NotExtended)]
[DataRow(HttpStatusCode.NetworkAuthenticationRequired)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment