Fix log invalid status code