Skip to content

Commit 3209fae

Browse files
YakupIpekfassadlr
authored andcommitted
NotFound result if key is not found
1 parent 7fbd854 commit 3209fae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Stratis.Bitcoin.Features.SmartContracts/ReflectionExecutor/Controllers/SmartContractsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public IActionResult GetStorage([FromQuery] GetStorageRequest request)
190190

191191
if (storageValue == null)
192192
{
193-
return this.Json(new
193+
return this.NotFound(new
194194
{
195195
Message = string.Format("No data at storage with key {0}", request.StorageKey)
196196
});

0 commit comments

Comments
 (0)