Returning 200 for non-found files fixed

pull/4672/head
Ahmet Çotur 5 years ago
parent 1834514a36
commit 766f615d83

@ -105,6 +105,7 @@ namespace Volo.Docs.Pages.Documents.Project
Logger.LogWarning(exception.Message); Logger.LogWarning(exception.Message);
DocumentFound = false; DocumentFound = false;
Response.StatusCode = 404;
return Page(); return Page();
} }
} }
@ -123,6 +124,7 @@ namespace Volo.Docs.Pages.Documents.Project
{ {
Logger.LogWarning(e.Message); Logger.LogWarning(e.Message);
ProjectFound = false; ProjectFound = false;
Response.StatusCode = 404;
return Page(); return Page();
} }

Loading…
Cancel
Save