added support for older versions

Also added support for showing custom errors for status codes different
from 200.
Now tests use real WLS responses (also new tests)