[fix bug 1060782] Raise 404 if there are errors in the API response.