Do HTTP 6xx codes exist? I think you can drop the code < 600 condition here