CORE-4135: added an error code for items that are not found and changed the HTTP status code to used for ERR_ILLEGAL_ARGUMENT