Skip to content

Commit

Permalink
NotFound result if key is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
YakupIpek authored and fassadlr committed Feb 1, 2022
1 parent d98d067 commit 212f1ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public IActionResult GetStorage([FromQuery] GetStorageRequest request)

if (storageValue == null)
{
return this.Json(new
return this.NotFound(new
{
Message = string.Format("No data at storage with key {0}", request.StorageKey)
});
Expand Down

0 comments on commit 212f1ec

Please sign in to comment.