Fix HTTP Status Code check