This test simulates a 500 Internal Server Error from the OpenAI API and verifies that the code handles it gracefully.
This test simulates a 404 Not Found response from the Dictionary API and verifies that it's handled as an expected response rather than an error.