It doesn't seem to exists a simple answer. You can take a look at the following answers:
- How do I ask Selenium IDE to check a HTTP Status Code (e.g. 2XX, 404, 500)
- Selenium IDE - always fail on any 500 error
- Checking HTTP Status Code in Selenium
Ektor