Using the new error message in API

Thx @xela7