Removed inconsitent error messages in restcore