Fixed incorrect response codes.