different http status codes go to different files or stdout