returning error object
This commit is contained in:
parent
a3c1bc99d8
commit
fe9c431999
@ -118,7 +118,12 @@ null#slurp
|
|||||||
#end if
|
#end if
|
||||||
);
|
);
|
||||||
} catch (NotDataFoundException) {
|
} catch (NotDataFoundException) {
|
||||||
return StatusCode(404, "No $operation['resultType']['apiName'] element found");
|
var err = new ErrorResultObject();
|
||||||
|
err.errorCode = 400;
|
||||||
|
err.serviceErrorCode = 517;
|
||||||
|
err.errorMessage("item not found");
|
||||||
|
err.errorInfoURL("https://google.com");
|
||||||
|
return BadRequest(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user