Skip to content

Commit 8e84e7f

Browse files
Collin Stevenskhellang
authored andcommitted
replace httpstatuses.com with httpstatuses.io
1 parent 48b8d9e commit 8e84e7f

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/ProblemDetails/StatusCodeProblemDetails.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private static void SetDetails(MvcProblemDetails details, int statusCode)
4141

4242
internal static string GetDefaultType(int statusCode)
4343
{
44-
return $"https://httpstatuses.com/{statusCode}";
44+
return $"https://httpstatuses.io/{statusCode}";
4545
}
4646
}
4747
}

test/ProblemDetails.Tests/ProblemDetailsExceptionTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public void Constructor_InitializesMessage()
1414

1515
var exception = new ProblemDetailsException(problemDetails);
1616

17-
Assert.Equal("https://httpstatuses.com/303 : See other", exception.Message);
17+
Assert.Equal("https://httpstatuses.io/303 : See other", exception.Message);
1818
}
1919

2020
[Fact]
@@ -25,7 +25,7 @@ public void ToString_ReturnsAllDetails()
2525
var exception = new ProblemDetailsException(problemDetails);
2626
var actual = exception.ToString();
2727

28-
var expected = @"Type : https://httpstatuses.com/303
28+
var expected = @"Type : https://httpstatuses.io/303
2929
Title : See other
3030
Status : 303
3131
Detail : Look somewhere else.
@@ -83,7 +83,7 @@ private static Microsoft.AspNetCore.Mvc.ProblemDetails CreateProblemDetails()
8383
{
8484
return new Microsoft.AspNetCore.Mvc.ProblemDetails
8585
{
86-
Type = "https://httpstatuses.com/303",
86+
Type = "https://httpstatuses.io/303",
8787
Title = "See other",
8888
Status = 303,
8989
Detail = "Look somewhere else.",

test/ProblemDetails.Tests/ProblemDetailsMiddlewareTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public async Task ProblemDetailsException_IsHandled()
148148
var details = new MvcProblemDetails
149149
{
150150
Title = ReasonPhrases.GetReasonPhrase(expected),
151-
Type = $"https://httpstatuses.com/{expected}",
151+
Type = $"https://httpstatuses.io/{expected}",
152152
Status = expected,
153153
};
154154

@@ -171,7 +171,7 @@ public async Task ProblemDetailsException_WithInnerException_InnerExceptionToBeI
171171
var details = new MvcProblemDetails
172172
{
173173
Title = ReasonPhrases.GetReasonPhrase(expected),
174-
Type = $"https://httpstatuses.com/{expected}",
174+
Type = $"https://httpstatuses.io/{expected}",
175175
Status = expected,
176176
};
177177

0 commit comments

Comments
 (0)