Create response methods for setting code