Skip to content

Commit 4270cd4

Browse files
FrostyApeOneFrostyApeOne
authored andcommitted
Included ErrorId in the unautohrised error messages
1 parent 5e83862 commit 4270cd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GovUK.Dfe.ExternalApplications.Api.Client/Security/TokenExchangeHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ private HttpResponseMessage UnauthorizedResponse(HttpRequestMessage request)
142142
{
143143
ExceptionType = "Unauthorized",
144144
Message = "Authentication tokens are invalid or expired",
145-
Timestamp = DateTime.UtcNow
145+
Timestamp = DateTime.UtcNow,
146+
ErrorId = "Exchange-401"
146147
};
147148

148149
var json = JsonSerializer.Serialize(errorResponse);

0 commit comments

Comments
 (0)