allow recording and playback of 'error' ajax calls

Useful for checking that code responds correctly to ajax 'error' states, such as permission-based calls where the client is unauthorized.