Fix HTTP response codes