fixed css
throw IOException if HTTP status code is 400, 404 and 500
stop ajax if errors occurs.