Set response status on prepare method