Fix HTTP status bug introduced by previous commit