ImageBot DALL-E error

Hello! I've created Image Generator app using MIT app inventor tutorial, then I decided to add code that displays error when Generating an Image fails and surprisingly there was error code, but error code was 404. I was so confused because Error Code 404 is for Page not found. What should I do? Don't worry I have API key included.