Skip to content

Commit

Permalink
Update error response
Browse files Browse the repository at this point in the history
  • Loading branch information
nagarwal4 authored Dec 19, 2023
1 parent 287c40f commit 14fd348
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public async Task Invoke(HttpContext context)
}
else
{
_logger.LogError("Invalid signature");
var customErrors = new CustomErrors(new CustomError("Forbidden", "Invalid signature", "x-signature"));
_logger.LogError("Timestamp outdated");
var customErrors = new CustomErrors(new CustomError("Forbidden", "Invalid timestamp", "timestamp"));
await WriteCustomErrors(context.Response, customErrors, (int)HttpStatusCode.Forbidden);
}
}
Expand Down Expand Up @@ -183,4 +183,4 @@ public static void ConfigureSignatureVerificationMiddleware(this IApplicationBui
app.UseMiddleware<SignatureVerificationMiddleware>();
}
}
}
}

0 comments on commit 14fd348

Please sign in to comment.